X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=resources%2Fsrc%2Fjquery%2Fjquery.makeCollapsible.js;h=aa76d6dfbbe5e0f74e82b20f0c46c7001e5ebbab;hp=ac4a3926aced9a2508811906fd2b82c3521c7ab7;hb=3df3b575c6617df64ec98533cc7141bd2314e274;hpb=15b88fc2807c21c4fbefbb75ba2433d3d150b34a diff --git a/resources/src/jquery/jquery.makeCollapsible.js b/resources/src/jquery/jquery.makeCollapsible.js index ac4a3926ac..aa76d6dfbb 100644 --- a/resources/src/jquery/jquery.makeCollapsible.js +++ b/resources/src/jquery/jquery.makeCollapsible.js @@ -262,16 +262,17 @@ // Default toggle link. Only build it when needed to avoid jQuery memory leaks (event data). buildDefaultToggleLink = function () { - return $( '' ) + return $( '' ) .text( collapseText ) - .wrap( '' ).parent() - .attr( { - role: 'button', - tabindex: 0 - } ) - .prepend( '[' ) - .append( ']' ) - .on( 'click.mw-collapsible keypress.mw-collapsible', actionHandler ); + .wrap( '' ) + .parent() + .attr( { + role: 'button', + tabindex: 0 + } ) + .prepend( '[' ) + .append( ']' ) + .on( 'click.mw-collapsible keypress.mw-collapsible', actionHandler ); }; // Check if this element has a custom position for the toggle link