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

Jifty commits jifty-commit at lists.jifty.org
Tue Jun 2 15:35:42 EDT 2009


Author: sartak
Date: Tue Jun  2 15:35:41 2009
New Revision: 7164

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

Log:
Submit all actions on the form when we click the submit button

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	Tue Jun  2 15:35:41 2009
@@ -30,14 +30,20 @@
             h3 { $step_info->{header} } if $step_info->{header};
 
             show "/__jifty/admin/setupwizard/$step_info->{template}";
+            my @actions = keys %{ Jifty->web->form->actions };
             form_submit(
                 label => _('Save'),
-                onclick => {
-                    replace_self => 1,
-                    arguments => {
-                        step => $step + 1,
+                onclick => [
+                    {
+                        submit => \@actions,
                     },
-                },
+                    {
+                        replace_self => 1,
+                        arguments => {
+                            step => $step + 1,
+                        },
+                    },
+                ],
             );
         };
     };


More information about the Jifty-commit mailing list