Index: trunk/phase3/resources/jquery/jquery.makeCollapsible.js |
— | — | @@ -210,7 +210,7 @@ |
211 | 211 | } |
212 | 212 | |
213 | 213 | // Create toggle link with a space around the brackets ( [text] ) |
214 | | - var $toggleLink = $( '<a href="#">' ).text( collapsetext ).wrap( '<span class="mw-collapsible-toggle">' ).parent().prepend( ' [' ).append( '] ' ).bind( 'click.mw-collapse', function(e){ |
| 214 | + var $toggleLink = $( '<a href="#"></a>' ).text( collapsetext ).wrap( '<span class="mw-collapsible-toggle"></span>' ).parent().prepend( ' [' ).append( '] ' ).bind( 'click.mw-collapse', function(e){ |
215 | 215 | toggleLinkDefault( this, e ); |
216 | 216 | } ); |
217 | 217 | |
— | — | @@ -276,7 +276,7 @@ |
277 | 277 | if ( $firstItem.attr( 'value' ) == '' || $firstItem.attr( 'value' ) == '-1' ) { // Will fail with === |
278 | 278 | $firstItem.attr( 'value', '1' ); |
279 | 279 | } |
280 | | - $that.prepend( $toggleLink.wrap( '<li class="mw-collapsible-toggle-li">' ).parent() ); |
| 280 | + $that.prepend( $toggleLink.wrap( '<li class="mw-collapsible-toggle-li"></li>' ).parent() ); |
281 | 281 | } else { |
282 | 282 | $toggleLink = $toggle.unbind( 'click.mw-collapse' ).bind( 'click.mw-collapse', function( e ){ |
283 | 283 | toggleLinkPremade( $toggle, e ); |
— | — | @@ -286,7 +286,7 @@ |
287 | 287 | } else { // <div>, <p> etc. |
288 | 288 | // If a direct child .content-wrapper does not exists, create it |
289 | 289 | if ( !$that.find( '> .mw-collapsible-content' ).size() ) { |
290 | | - $that.wrapInner( '<div class="mw-collapsible-content">' ); |
| 290 | + $that.wrapInner( '<div class="mw-collapsible-content"></div>' ); |
291 | 291 | } |
292 | 292 | |
293 | 293 | // The toggle-link will be the first child of the element |