remove input from jquery filter, so it works as well with buttons stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 19 Jan 2010 18:20:43 +0100
branchstable
changeset 4271 dfee17fa363f
parent 4256 bf6e0e75acfa
child 4279 e6b9fd79a247
child 4280 15d541321a8c
remove input from jquery filter, so it works as well with buttons
web/data/cubicweb.edition.js
--- a/web/data/cubicweb.edition.js	Wed Dec 16 14:19:01 2009 +0100
+++ b/web/data/cubicweb.edition.js	Tue Jan 19 18:20:43 2010 +0100
@@ -392,14 +392,14 @@
 /* unfreeze form buttons when the validation process is over*/
 function unfreezeFormButtons(formid) {
     jQuery('#progress').hide();
-    jQuery('#' + formid + ' input.validateButton').removeAttr('disabled');
+    jQuery('#' + formid + ' .validateButton').removeAttr('disabled');
     return true;
 }
 
 /* disable form buttons while the validation is being done */
 function freezeFormButtons(formid) {
     jQuery('#progress').show();
-    jQuery('#' + formid + ' input.validateButton').attr('disabled', 'disabled');
+    jQuery('#' + formid + ' .validateButton').attr('disabled', 'disabled');
     return true;
 }