X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery%2Fjquery.makeCollapsible.js;h=a433497506a32c0f1820ea73b2c56d64e30edb42;hb=91e63a1332fb589f8f3cc47b4466f24943aa8bd4;hp=aa76d6dfbbe5e0f74e82b20f0c46c7001e5ebbab;hpb=da9dd0cad440a65fca60f0bfdfb079261908a278;p=lhc%2Fweb%2Fwiklou.git
diff --git a/resources/src/jquery/jquery.makeCollapsible.js b/resources/src/jquery/jquery.makeCollapsible.js
index aa76d6dfbb..a433497506 100644
--- a/resources/src/jquery/jquery.makeCollapsible.js
+++ b/resources/src/jquery/jquery.makeCollapsible.js
@@ -8,7 +8,6 @@
* @class jQuery.plugin.makeCollapsible
*/
( function ( $, mw ) {
-
/**
* Handler for a click on a collapsible toggler.
*
@@ -264,14 +263,12 @@
buildDefaultToggleLink = function () {
return $( '' )
.text( collapseText )
- .wrap( '' )
+ .wrap( '' )
.parent()
.attr( {
role: 'button',
tabindex: 0
} )
- .prepend( '[' )
- .append( ']' )
.on( 'click.mw-collapsible keypress.mw-collapsible', actionHandler );
};
@@ -282,6 +279,7 @@
} else {
collapsibleId = $collapsible.attr( 'id' ) || '';
if ( collapsibleId.indexOf( 'mw-customcollapsible-' ) === 0 ) {
+ collapsibleId = $.escapeSelector( collapsibleId );
$customTogglers = $( '.' + collapsibleId.replace( 'mw-customcollapsible', 'mw-customtoggle' ) )
.addClass( 'mw-customtoggle' );
}