From: Krinkle Date: Mon, 28 Feb 2011 21:20:23 +0000 (+0000) Subject: Closing tags in jQuery-element creation. Bug in jQuery, using the shortcut doens... X-Git-Tag: 1.31.0-rc.0~31717 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=86d10b8ce02af5914bbbd7156310e2cf9cf661f8;p=lhc%2Fweb%2Fwiklou.git Closing tags in jQuery-element creation. Bug in jQuery, using the shortcut doens't work in IE8, it needs to be --- diff --git a/resources/jquery/jquery.makeCollapsible.js b/resources/jquery/jquery.makeCollapsible.js index 3500ec2f18..17e7e0a64a 100644 --- a/resources/jquery/jquery.makeCollapsible.js +++ b/resources/jquery/jquery.makeCollapsible.js @@ -210,7 +210,7 @@ $.fn.makeCollapsible = function() { } // Create toggle link with a space around the brackets ( [text] ) - var $toggleLink = $( '' ).text( collapsetext ).wrap( '' ).parent().prepend( ' [' ).append( '] ' ).bind( 'click.mw-collapse', function(e){ + var $toggleLink = $( '' ).text( collapsetext ).wrap( '' ).parent().prepend( ' [' ).append( '] ' ).bind( 'click.mw-collapse', function(e){ toggleLinkDefault( this, e ); } ); @@ -276,7 +276,7 @@ $.fn.makeCollapsible = function() { if ( $firstItem.attr( 'value' ) == '' || $firstItem.attr( 'value' ) == '-1' ) { // Will fail with === $firstItem.attr( 'value', '1' ); } - $that.prepend( $toggleLink.wrap( '
  • ' ).parent() ); + $that.prepend( $toggleLink.wrap( '
  • ' ).parent() ); } else { $toggleLink = $toggle.unbind( 'click.mw-collapse' ).bind( 'click.mw-collapse', function( e ){ toggleLinkPremade( $toggle, e ); @@ -286,7 +286,7 @@ $.fn.makeCollapsible = function() { } else { //
    ,

    etc. // If a direct child .content-wrapper does not exists, create it if ( !$that.find( '> .mw-collapsible-content' ).size() ) { - $that.wrapInner( '

    ' ); + $that.wrapInner( '
    ' ); } // The toggle-link will be the first child of the element