update handleFormValidationResponse calls stable
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Tue, 19 May 2009 14:31:42 +0200
branchstable
changeset 1868 af1ae863606d
parent 1867 b2fe73a55899
child 1869 642a1a120a92
child 1870 015dfeaf1d89
update handleFormValidationResponse calls
web/data/cubicweb.edition.js
web/views/basecontrollers.py
--- a/web/data/cubicweb.edition.js	Tue May 19 13:21:29 2009 +0200
+++ b/web/data/cubicweb.edition.js	Tue May 19 14:31:42 2009 +0200
@@ -471,7 +471,7 @@
 	return false;
     }
     d.addCallback(function (result, req) {
-        handleFormValidationResponse(formid, noop, result);
+    handleFormValidationResponse(formid, noop, noop, result);
 	if (reload) {
 	    document.location.href = result[1];
 	} else {
@@ -505,7 +505,7 @@
 	return false;
     }
     d.addCallback(function (result, req) {
-        handleFormValidationResponse(formid, noop, result);
+	    handleFormValidationResponse(formid, noop, noop, result);
 	var fieldview = getNode(divid);
         fieldview.innerHTML = result[2];
 	// switch inline form off only if no error
--- a/web/views/basecontrollers.py	Tue May 19 13:21:29 2009 +0200
+++ b/web/views/basecontrollers.py	Tue May 19 14:31:42 2009 +0200
@@ -208,7 +208,7 @@
         self.req.set_content_type('text/html')
         jsarg = simplejson.dumps( (status, args) )
         return """<script type="text/javascript">
- window.parent.handleFormValidationResponse('entityForm', null, %s);
+ window.parent.handleFormValidationResponse('entityForm', null, null, %s);
 </script>""" %  simplejson.dumps( (status, args) )
 
     def validation_error(self, err):