diff options
Diffstat (limited to 'rt/html/Widgets/SelectionBox')
-rw-r--r-- | rt/html/Widgets/SelectionBox | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rt/html/Widgets/SelectionBox b/rt/html/Widgets/SelectionBox index 910b20b25..38ae7a04a 100644 --- a/rt/html/Widgets/SelectionBox +++ b/rt/html/Widgets/SelectionBox @@ -146,6 +146,10 @@ else { } } + if ($ARGS{clear}) { + $current = []; + } + $self->{Current} = $current; } @@ -201,9 +205,14 @@ selected="selected" ><% $self->{_item_map}{$_} %></option> % } </select> +% unless ($ARGS{'NoArrows'}) { <input name="moveup" type="submit" class="button" value=" ↑ " /> <input name="movedown" type="submit" class="button" value=" ↓ " /> +% } <input name="remove" type="submit" class="button" value="<&|/l&>Delete</&>" /> +% if ($ARGS{'Clear'}) { + <input name="clear" type="submit" class="button" value="<&|/l&>Clear</&>" /> +% } % my $caption = ""; % unless ($self->{'AutoSave'}) { |