From 59331e7853bdbc69256e93d966e29eaebd0c63c8 Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 11 Oct 2012 14:58:35 -0700 Subject: [PATCH] Issue #1263302 by andypost, peterpoe: Fixed States API disabled state handler filters out nonexistent class 'form-element'. --- core/misc/states.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/misc/states.js b/core/misc/states.js index e92869f88a0..afd922c0785 100644 --- a/core/misc/states.js +++ b/core/misc/states.js @@ -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