[Rt-commit] r2478 - in rt/branches/QUEBEC-EXPERIMENTAL: . html/Prefs html/Widgets

jesse at bestpractical.com jesse at bestpractical.com
Thu Mar 17 00:00:43 EST 2005


Author: jesse
Date: Thu Mar 17 00:00:43 2005
New Revision: 2478

Modified:
   rt/branches/QUEBEC-EXPERIMENTAL/   (props changed)
   rt/branches/QUEBEC-EXPERIMENTAL/html/Prefs/MyRT.html
   rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox
Log:
 r8816 at hualien:  jesse | 2005-03-16 23:58:56 -0500
 Minor cleanups based on customer feedback


Modified: rt/branches/QUEBEC-EXPERIMENTAL/html/Prefs/MyRT.html
==============================================================================
--- rt/branches/QUEBEC-EXPERIMENTAL/html/Prefs/MyRT.html	(original)
+++ rt/branches/QUEBEC-EXPERIMENTAL/html/Prefs/MyRT.html	Thu Mar 17 00:00:43 2005
@@ -53,19 +53,17 @@
 <& /Widgets/SelectionBox:header &>
 
 <& /Elements/ListActions, actions => \@actions &>
-<p>
-<&|/Elements/TitleBox, title => loc('Options'), bodyclass => "" &>
-<form method="POST" action="MyRT.html">
-<&|/l&>Summary rows</&>:<input name="SummaryRows" value="<% $ARGS{SummaryRows} %>">
-<& /Elements/Submit, Caption => loc("Save Changes"), Label => loc('Save'), Name => 'Save' &>
-</form>
-</&>
-<br>
+<br />
 % for my $pane (@panes) {
 <&|/Elements/TitleBox, title => loc('RT at a glance').': '.loc($pane->{Name}), bodyclass => "" &>
 <& /Widgets/SelectionBox:show, self => $pane &></&>
-<br>
+<br />
 % }
+<&|/Elements/TitleBox, title => loc('Options'), bodyclass => "" &>
+<form method="POST" action="MyRT.html">
+    <&|/l&>Rows per box</&>:<input name="SummaryRows" value="<% $ARGS{SummaryRows} %>" /> <input type="submit" label="<%loc('Save')%>" />
+</form>
+</&>
 <%INIT>
 my @actions;
 
@@ -127,7 +125,8 @@
 	$m->comp ('/Widgets/SelectionBox:new',
 		  Action => 'MyRT.html',
 		  Name => $pane,
-		  Available => \@items,
+                  Available => \@items,
+                  AutoSave => 1,
 		  OnSubmit =>
 		  sub { my $sel = shift;
 			$portlets->{$pane} =

Modified: rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox
==============================================================================
--- rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox	(original)
+++ rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox	Thu Mar 17 00:00:43 2005
@@ -200,11 +200,12 @@
  <input name="remove" type="submit" value="<&|/l&>Delete</&>"/>
 
 % my $caption = "";
+% unless ($self->{'AutoSave'}) {
 % if ($self->{Modified}) {
 % $caption = loc('Selections modified. Please save your changes');
 % }
 <& /Elements/Submit, Caption => loc($caption), Label => loc('Save'), Name => $name.'-Save' &>
-
+% }
 </form>
 
 <script type="text/javascript">


More information about the Rt-commit mailing list