summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misc/states.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/states.js b/misc/states.js
index 594f818..4b4f1d5 100644
--- a/misc/states.js
+++ b/misc/states.js
@@ -482,8 +482,8 @@ $(document).bind('state:disabled', function(e) {
if (e.trigger) {
$(e.target)
.attr('disabled', e.value)
- .filter('.form-element')
- .closest('.form-item, .form-submit, .form-wrapper').toggleClass('form-disabled', e.value);
+ .closest('.form-item, .form-submit, .form-wrapper').toggleClass('form-disabled', e.value)
+ .find('select, input, textarea').attr('disabled', e.value);
// Note: WebKit nightlies don't reflect that change correctly.
// See https://bugs.webkit.org/show_bug.cgi?id=23789