Merge "jquery.makeCollapsible: Don't ignore clicks on fake links without href"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 11 Apr 2016 21:20:52 +0000 (21:20 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 11 Apr 2016 21:20:52 +0000 (21:20 +0000)
resources/src/jquery/jquery.makeCollapsible.js

index ddc57ec..79e8731 100644 (file)
                                e.type === 'click' &&
                                options.linksPassthru &&
                                $.nodeName( e.target, 'a' ) &&
+                               $( e.target ).attr( 'href' ) &&
                                $( e.target ).attr( 'href' ) !== '#'
                        ) {
                                // Don't fire if a link with href !== '#' was clicked, if requested  (for premade togglers by default)