[Rt-commit] r2324 - in rt/branches/QUEBEC-EXPERIMENTAL/html: NoAuth
Widgets
clkao at bestpractical.com
clkao at bestpractical.com
Wed Mar 9 00:44:38 EST 2005
Author: clkao
Date: Wed Mar 9 00:44:38 2005
New Revision: 2324
Modified:
rt/branches/QUEBEC-EXPERIMENTAL/html/NoAuth/list.js
rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox
Log:
More SelectionBox UI tweaks.
Modified: rt/branches/QUEBEC-EXPERIMENTAL/html/NoAuth/list.js
==============================================================================
--- rt/branches/QUEBEC-EXPERIMENTAL/html/NoAuth/list.js (original)
+++ rt/branches/QUEBEC-EXPERIMENTAL/html/NoAuth/list.js Wed Mar 9 00:44:38 2005
@@ -43,6 +43,9 @@
if((src.childNodes[i].nodeName=="input" || src.childNodes[i].nodeName=="INPUT")
&& (src.childNodes[i].type=="submit" || src.childNodes[i].type=="SUBMIT")) {
+ if (src.childNodes[i].name.indexOf("Save") < 0)
+ src.childNodes[i].type = "button";
+
if(src.childNodes[i].name=="add")
src.childNodes[i].onclick = new Function(this.name+".add();");
if(src.childNodes[i].name=="remove")
Modified: rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox
==============================================================================
--- rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox (original)
+++ rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox Wed Mar 9 00:44:38 2005
@@ -177,13 +177,13 @@
<b><&|/l&>(Modified, Please save)</&></b>
% }
<br>
-<select name="<%$name%>-Available" id="<%$name%>-Available" multiple >
+<select name="<%$name%>-Available" id="<%$name%>-Available" size="<%$size%>" multiple="multiple">
% for (@{$self->{Available}}) {
<option value="<% $_->[0] %>"><% $_->[1] %></option>
% }
</select>
<input name="add" type="submit" value="->"/>
-<select name="<%$name%>-Selected" id="<%$name%>-Selected" multiple>
+<select name="<%$name%>-Selected" id="<%$name%>-Selected" size="<%$size%>" multiple="multiple">
% for (@{$self->{Current}}) {
<option value="<% $_ %>"
% if (exists $selected{$_}) {
@@ -194,7 +194,7 @@
</select>
<input name="moveup" type="submit" value="^"/>
<input name="movedown" type="submit" value="v"/>
- <input name="remove" type="submit" value="X"/>
+ <input name="remove" type="submit" value="<&|/l&>Delete</&>"/>
<& /Elements/Submit, Caption => loc("Save"), Label => loc('Save'), Name => $name.'-Save' &>
@@ -205,6 +205,7 @@
</script>
<%ARGS>
$self => undef
+$size => 10
</%ARGS>
<%INIT>
my $name = $self->{Name};
More information about the Rt-commit
mailing list