summaryrefslogtreecommitdiff
path: root/misc/vertical-tabs.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/vertical-tabs.js')
-rw-r--r--misc/vertical-tabs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/vertical-tabs.js b/misc/vertical-tabs.js
index 14d06607b..ebfaa4f7f 100644
--- a/misc/vertical-tabs.js
+++ b/misc/vertical-tabs.js
@@ -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);