@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user