fix freezeFormButtons function
authorsylvain.thenault@logilab.fr
Thu, 26 Feb 2009 13:45:14 +0100
changeset 977 d8bb6209edcd
parent 976 84884807b77b
child 978 536c748e7b3f
fix freezeFormButtons function
web/data/cubicweb.edition.js
--- a/web/data/cubicweb.edition.js	Thu Feb 26 13:31:29 2009 +0100
+++ b/web/data/cubicweb.edition.js	Thu Feb 26 13:45:14 2009 +0100
@@ -402,9 +402,8 @@
 
 /* disable form buttons while the validation is being done */
 function freezeFormButtons(formid) {
-    var formbuttons = jQuery(formid + ' input.validateButton');
     jQuery('#progress').show();
-    jQuery(formid + ' input.validateButton').attr('disabled', 'disabled');
+    jQuery('#' + formid + ' input.validateButton').attr('disabled', 'disabled');
     return true;
 }