jquery.makeCollapsible: Don't ignore clicks on fake links without href
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 31 Mar 2016 15:11:09 +0000 (17:11 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 31 Mar 2016 20:10:30 +0000 (22:10 +0200)
Change-Id: I409d6316d71338379feae851cb75466915309d08

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)