• Resolved kaynenh

    (@kaynenh)


    I was getting a jquery error using this plugin in all browsers if there was a single hash tag in the url. I traced the error to line 180 in collapse.js, so I added a simple if statement to check to make sure that the url fragment contained more than just the hash tag and that fixed it. Hope this helps someone else!

    var myFile = document.location.toString();
    if (myFile.match('#')) { // the URL contains an anchor
        // click the navigation item corresponding to the anchor
        var myAnchor = '#' + myFile.split('#')[1];
        if (myAnchor != '#') {
            jQuery(myAnchor).click();
        }
    }

    http://wordpress.org/extend/plugins/jquery-collapse-o-matic/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: jQuery Collapse-O-Matic] Single Hash Tag in Url’ is closed to new replies.