diff options
author | David Rothstein <drothstein@gmail.com> | 2013-01-16 16:45:48 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-01-16 16:45:48 -0500 |
commit | 1d4604da252f0e6e19339957ec214388f61b908d (patch) | |
tree | 70f9fcda3737207074200a44e7cf949aebc60c66 /misc/collapse.js | |
parent | b47f95d3013619e33cafdf8b769b2b6179a07956 (diff) | |
download | brdo-1d4604da252f0e6e19339957ec214388f61b908d.tar.gz brdo-1d4604da252f0e6e19339957ec214388f61b908d.tar.bz2 |
Drupal 7.19
Diffstat (limited to 'misc/collapse.js')
-rw-r--r-- | misc/collapse.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/collapse.js b/misc/collapse.js index bd51ce532..512ff2f9f 100644 --- a/misc/collapse.js +++ b/misc/collapse.js @@ -58,9 +58,9 @@ 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) { + if ($fieldset.find('.error' + anchor).length) { $fieldset.removeClass('collapsed'); } |