[Jifty-commit] r7163 - jifty/trunk/lib/Jifty/Web

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


Author: sartak
Date: Tue Jun  2 15:35:37 2009
New Revision: 7163

Modified:
   jifty/trunk/lib/Jifty/Web/Form.pm

Log:
Form submit should be powered by a button not a link

Modified: jifty/trunk/lib/Jifty/Web/Form.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/Form.pm	Tue Jun  2 15:35:37 2009
@@ -230,9 +230,12 @@
 
 sub submit {
     my $self = shift;
-    my %args = (submit => undef,
-                _form => $self,
-                @_);
+    my %args = (
+        submit    => undef,
+        _form     => $self,
+        as_button => 1,
+        @_,
+    );
 
     my @submit = ref($args{'submit'}) eq 'ARRAY' ? @{$args{'submit'}} : $args{'submit'};
     if ($self->actions->{'next_page'} && $submit[0] && ! grep {$_->moniker eq 'next_page' } @submit)  {


More information about the Jifty-commit mailing list