[Jifty-commit] r7176 - jifty/trunk/lib/Jifty/Plugin/SetupWizard

Jifty commits jifty-commit at lists.jifty.org
Wed Jun 3 14:31:43 EDT 2009


Author: sartak
Date: Wed Jun  3 14:31:41 2009
New Revision: 7176

Modified:
   jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm

Log:
Submit all actions *and* advance to the next step

Modified: jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/SetupWizard/View.pm	Wed Jun  3 14:31:41 2009
@@ -30,7 +30,19 @@
             h3 { $step_info->{header} } if $step_info->{header};
 
             show "/__jifty/admin/setupwizard/$step_info->{template}";
-            form_submit(label => _('Save'));
+            form_submit(
+                label => _('Save'),
+                onclick => {
+                    # Submit all actions
+                    submit => undef,
+
+                    # Advance to the next step
+                    refresh_self => 1,
+                    arguments => {
+                        step => $step + 1,
+                    },
+                },
+            );
         };
     };
 


More information about the Jifty-commit mailing list