diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/collapse.js | 2 | ||||
-rw-r--r-- | misc/states.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/misc/collapse.js b/misc/collapse.js index 1a98dc0e0..bd51ce532 100644 --- a/misc/collapse.js +++ b/misc/collapse.js @@ -58,7 +58,7 @@ Drupal.behaviors.collapse = { $('fieldset.collapsible', context).once('collapse', function () { var $fieldset = $(this); // Expand fieldset if there are errors inside, or if it contains an - // element that is targeted by the uri fragment identifier. + // element that is targeted by the URI fragment identifier. var anchor = location.hash && location.hash != '#' ? ', ' + location.hash : ''; if ($('.error' + anchor, $fieldset).length) { $fieldset.removeClass('collapsed'); diff --git a/misc/states.js b/misc/states.js index 594f8187b..4b4f1d518 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 |