summaryrefslogtreecommitdiff
path: root/rt/html/Widgets/SelectionBox
diff options
context:
space:
mode:
authorivan <ivan>2008-03-02 04:11:51 +0000
committerivan <ivan>2008-03-02 04:11:51 +0000
commit8103c1fc1b2c27a6855feadf26f91b980a54bc52 (patch)
tree631dd45606c37c00d9026e14ecc3ee3700b4b51c /rt/html/Widgets/SelectionBox
parent9c68254528b6f2c7d8c1921b452fa56064783782 (diff)
import rt 3.6.6
Diffstat (limited to 'rt/html/Widgets/SelectionBox')
-rw-r--r--rt/html/Widgets/SelectionBox9
1 files changed, 9 insertions, 0 deletions
diff --git a/rt/html/Widgets/SelectionBox b/rt/html/Widgets/SelectionBox
index 910b20b..38ae7a0 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=" &uarr; " />
<input name="movedown" type="submit" class="button" value=" &darr; " />
+% }
<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'}) {