@@ -50,8 +50,8 @@ Drupal.behaviors.verticalTabs = {
|
||||
if (!tab_focus) {
|
||||
// If the current URL has a fragment and one of the tabs contains an
|
||||
// element that matches the URL fragment, activate that tab.
|
||||
if (window.location.hash && $(window.location.hash, this).length) {
|
||||
tab_focus = $(window.location.hash, this).closest('.vertical-tabs-pane');
|
||||
if (window.location.hash && $(this).find(window.location.hash).length) {
|
||||
tab_focus = $(this).find(window.location.hash).closest('.vertical-tabs-pane');
|
||||
}
|
||||
else {
|
||||
tab_focus = $('> .vertical-tabs-pane:first', this);
|
||||
|
||||
Reference in New Issue
Block a user