[Jifty-commit] r5976 - in jifty/trunk: share/web/static/js

Jifty commits jifty-commit at lists.jifty.org
Sat Nov 1 02:05:43 EDT 2008


Author: alexmv
Date: Sat Nov  1 02:05:42 2008
New Revision: 5976

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/share/web/static/js/jifty.js

Log:
 r38818 at kohr-ah:  chmrr | 2008-11-01 02:05:30 -0400
  * Include current continuation in validation requests, so that
 multipage actions have access to all form field values, not just ones
 on this page.


Modified: jifty/trunk/share/web/static/js/jifty.js
==============================================================================
--- jifty/trunk/share/web/static/js/jifty.js	(original)
+++ jifty/trunk/share/web/static/js/jifty.js	Sat Nov  1 02:05:42 2008
@@ -207,10 +207,16 @@
         show_wait_message();
         var id = this.register.id;
 
+        var data = this.serialize();
+        data += '&J:VALIDATE=1';
+        if (this.form['J:C']) {
+            data += '&J:C='+this.form['J:C'].value;
+        }
+
         jQuery.ajax({
             url: '/__jifty/validator.xml',  // Right now, the URL is actually completely irrelevant
             type: "get",
-            data: this.serialize() + "&J:VALIDATE=1",
+            data: data,
             complete: function (request, status) {
                 var response  = request.responseXML.documentElement;
                 for (var action = response.firstChild; action != null; action = action.nextSibling) {


More information about the Jifty-commit mailing list