--- a/web/data/cubicweb.edition.js Thu Sep 17 17:05:58 2009 +0200
+++ b/web/data/cubicweb.edition.js Thu Sep 17 17:06:22 2009 +0200
@@ -481,10 +481,10 @@
return false;
}
d.addCallback(function (result, req) {
- handleFormValidationResponse(divid+'-form', noop, noop, result);
- if (reload) {
+ if (handleFormValidationResponse(divid+'-form', noop, noop, result)) {
+ if (reload) {
document.location.href = result[1].split('?')[0];
- } else {
+ } else {
var fieldview = getNode('value-' + divid);
// XXX using innerHTML is very fragile and won't work if
// we mix XHTML and HTML
@@ -494,7 +494,8 @@
// hide global error messages
hideInlineEdit(eid, rtype, divid);
}
- }
+ }
+ }
return false;
});
return false;