# HG changeset patch # User Sylvain Thénault # Date 1308158376 -7200 # Node ID a05bad3aec2ecd2ecaeba23f5360119487714a53 # Parent 9989b69e2a194272c9954d95dbded497a77be01f [ajax edition] freeze form button when calling validateForm, so it freeze nicely for e.g. comment submitting form diff -r 9989b69e2a19 -r a05bad3aec2e web/data/cubicweb.edition.js --- a/web/data/cubicweb.edition.js Wed Jun 15 19:15:55 2011 +0200 +++ b/web/data/cubicweb.edition.js Wed Jun 15 19:19:36 2011 +0200 @@ -583,6 +583,7 @@ * around the corresponding input fields. */ function validateForm(formid, action, onsuccess, onfailure) { + freezeFormButtons(formid); try { var zipped = cw.utils.formContents(formid); var args = ajaxFuncArgs('validate_form', null, action, zipped[0], zipped[1]);