summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2012-10-14 04:45:28 (GMT)
committer webchick2012-10-14 04:45:28 (GMT)
commit10bbaf37a4c63a3cefe7ab1d5f99536ee03d17bb (patch)
tree5499677a5194a2c75d0a6e542a8e363740a5d793
parent8615b92be64780ad650b28fdec5dfb6c4c54f467 (diff)
Issue #1263302 by andypost, peterpoe: Fixed States API disabled state handler filters out nonexistent class 'form-element'.
-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