--- a/web/data/cubicweb.edition.js Fri Nov 13 09:15:28 2009 +0100
+++ b/web/data/cubicweb.edition.js Fri Nov 13 09:16:28 2009 +0100
@@ -363,6 +363,9 @@
}
return true;
}
+ if (onfailure && !onfailure(result, formid, cbargs)) {
+ return false;
+ }
unfreezeFormButtons(formid);
// Failures
_clearPreviousErrors(formid);
@@ -376,9 +379,6 @@
_displayValidationerrors(formid, descr[0], descr[1]);
updateMessage(_('please correct errors below'));
document.location.hash = '#header';
- if (onfailure) {
- onfailure(formid, cbargs);
- }
return false;
}