--- 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):