merge stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 13 Nov 2009 09:16:28 +0100
branchstable
changeset 3837 0cb409871d42
parent 3836 58c09f21f503 (current diff)
parent 3834 e3e64352063d (diff)
child 3838 9cc134372bf8
child 3839 84c9aab84d8c
merge
--- 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;
 }