Commit 59331e78 authored by webchick's avatar webchick

Issue #1263302 by andypost, peterpoe: Fixed States API disabled state handler...

Issue #1263302 by andypost, peterpoe: Fixed States API disabled state handler filters out nonexistent class 'form-element'.
parent ea1280d7
......@@ -504,8 +504,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment