From 86d10b8ce02af5914bbbd7156310e2cf9cf661f8 Mon Sep 17 00:00:00 2001 From: Krinkle Date: Mon, 28 Feb 2011 21:20:23 +0000 Subject: [PATCH] Closing tags in jQuery-element creation. Bug in jQuery, using the shortcut doens't work in IE8, it needs to be --- resources/jquery/jquery.makeCollapsible.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.20.1