From: Bartosz DziewoƄski Date: Thu, 31 Mar 2016 15:11:09 +0000 (+0200) Subject: jquery.makeCollapsible: Don't ignore clicks on fake links without href X-Git-Tag: 1.31.0-rc.0~7322^2 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=5aface0b6100b95b5e47748a69226e4bfa72d803;p=lhc%2Fweb%2Fwiklou.git jquery.makeCollapsible: Don't ignore clicks on fake links without href Change-Id: I409d6316d71338379feae851cb75466915309d08 --- diff --git a/resources/src/jquery/jquery.makeCollapsible.js b/resources/src/jquery/jquery.makeCollapsible.js index ddc57ecc41..79e87316e0 100644 --- a/resources/src/jquery/jquery.makeCollapsible.js +++ b/resources/src/jquery/jquery.makeCollapsible.js @@ -163,6 +163,7 @@ 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)