X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery%2Fjquery.makeCollapsible.js;h=5ce9b1f9bc013640c8d50c409efeb3f1c9e79e69;hb=f7e1770fb832aa77bf4e16ce8cc815f2b24dd10d;hp=9d3df8cbf31f7c1850a685b333f46e669f69f254;hpb=b77e101acbba77fa80db8b166287bcdf81534e80;p=lhc%2Fweb%2Fwiklou.git
diff --git a/resources/src/jquery/jquery.makeCollapsible.js b/resources/src/jquery/jquery.makeCollapsible.js
index 9d3df8cbf3..5ce9b1f9bc 100644
--- a/resources/src/jquery/jquery.makeCollapsible.js
+++ b/resources/src/jquery/jquery.makeCollapsible.js
@@ -152,7 +152,8 @@
if ( e ) {
if (
e.type === 'click' &&
- e.target.nodeName.toLowerCase() === 'a'
+ e.target.nodeName.toLowerCase() === 'a' &&
+ $( e.target ).attr( 'href' )
) {
// Don't fire if a link was clicked (for premade togglers)
return;
@@ -261,7 +262,7 @@
// Default toggle link. Only build it when needed to avoid jQuery memory leaks (event data).
buildDefaultToggleLink = function () {
- return $( '' )
+ return $( '' )
.text( collapseText )
.wrap( '' ).parent()
.attr( {