# HG changeset patch # User Sylvain Thénault # Date 1258100188 -3600 # Node ID 0cb409871d422d46298d751b1fc692b1509a015f # Parent 58c09f21f50315311c1b69d1f4d882c7eedea251# Parent e3e64352063de3547efa1040a8372e528a0e4bb0 merge diff -r 58c09f21f503 -r 0cb409871d42 web/data/cubicweb.edition.js --- 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; }