[Rt-commit] r2469 - rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets

clkao at bestpractical.com clkao at bestpractical.com
Mon Mar 14 12:17:03 EST 2005


Author: clkao
Date: Mon Mar 14 12:17:02 2005
New Revision: 2469

Modified:
   rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox
Log:
Allow AutoSave mode for SelectionBox.

Modified: rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox
==============================================================================
--- rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox	(original)
+++ rt/branches/QUEBEC-EXPERIMENTAL/html/Widgets/SelectionBox	Mon Mar 14 12:17:02 2005
@@ -68,7 +68,9 @@
 %#
 %# and in html:
 %# <& /Widgets/SelectionBox:sow, self => $sel &>
-%# 
+%#
+%# if the SelectionBox is created with AutoSave option, OnSubmit will be called
+%# on every button clicked in non-js mode.
 <%method header>
 % if (0) {
 % # no javascript for now. it's broken in ie
@@ -147,7 +149,7 @@
 
 @{$self->{Current}} = grep { exists $self->{_item_map}{$_} } @{$self->{Current}};
 
-if ($ARGS{$self->{Name}.'-Save'}) {
+if ($self->{AutoSave} or $ARGS{$self->{Name}.'-Save'}) {
     $self->{OnSubmit}->($self);
     delete $self->{Modified};
 }


More information about the Rt-commit mailing list