Skip to content
Snippets Groups Projects

Issue #3362409: Vertical tabs result in jQuery error when overlay-context hashtag is added to URL

Open Issue #3362409: Vertical tabs result in jQuery error when overlay-context hashtag is added to URL
Open Juraj Falat requested to merge issue/drupal-3362409:3362409-vertical-tabs-result into 7.x
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
@@ -50,8 +50,9 @@ 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 && $(this).find(window.location.hash).length) {
tab_focus = $(this).find(window.location.hash).closest('.vertical-tabs-pane');
var hash = window.location.hash.replace(/[=%;,\/]/g, "");
if (hash !== '#' && $(this).find(hash).length) {
tab_focus = $(this).find(hash).closest('.vertical-tabs-pane');
}
else {
tab_focus = $('> .vertical-tabs-pane:first', this);
Loading