Skip to content
Snippets Groups Projects
Verified Commit ca316a5c authored by Drew Webber's avatar Drew Webber
Browse files

Issue #3362409 by durifal, mrinalini9, klausi, mcdruid, poker10: Vertical tabs...

Issue #3362409 by durifal, mrinalini9, klausi, mcdruid, poker10: Vertical tabs result in jQuery error when overlay-context hashtag is added to URL
parent ecf339b6
No related branches found
No related tags found
1 merge request!7330Issue #3306390 by poker10, catch, Fabianx, pwolanin, rvtraveller: [D7]...
Pipeline #48643 failed
Pipeline: drupal

#48652

    Pipeline: drupal

    #48651

      Pipeline: drupal

      #48650

        +6
        ......@@ -50,8 +50,11 @@ 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');
        // Remove any characters that jquery does not accept in find().
        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);
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment