[Jifty-commit] r7367 - jifty/trunk/lib/Jifty/Web/Form

Jifty commits jifty-commit at lists.jifty.org
Thu Aug 13 21:34:02 EDT 2009


Author: sartak
Date: Thu Aug 13 21:33:52 2009
New Revision: 7367

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

Log:
Break up $update into $update_json

Modified: jifty/trunk/lib/Jifty/Web/Form/Element.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Element.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/Form/Element.pm	Thu Aug 13 21:33:52 2009
@@ -539,15 +539,16 @@
                      @{ $trigger_structure->{value} };
 
         if ( @$fragments or ( !$actions || %$actions ) ) {
-            my $update = "Jifty.update( "
-                . Jifty::JSON::objToJson(
-                {   actions      => $actions,
+            my $update_json = Jifty::JSON::objToJson({
+                    actions      => $actions,
                     action_arguments => $trigger_structure->{action_arguments},
                     fragments    => $fragments,
                     continuation => $self->continuation,
                 },
-                { singlequote => 1 }
-                ) . ", this );";
+                { singlequote => 1 },
+            );
+
+            my $update = "Jifty.update($update_json, this);";
 
             $string .=
                 'if(event.ctrlKey||event.metaKey||event.altKey||event.shiftKey) return true; '


More information about the Jifty-commit mailing list