Index: branches/wmf/1.18wmf1/resources/mediawiki/mediawiki.util.js |
— | — | @@ -86,13 +86,13 @@ |
87 | 87 | // Only add it if there is a TOC and there is no toggle added already |
88 | 88 | if ( $tocContainer.size() && $tocTitle.size() && !$tocToggleLink.size() ) { |
89 | 89 | var hideTocCookie = $.cookie( 'mw_hidetoc' ); |
90 | | - $tocToggleLink = $( '<a href="#" class="internal" id="togglelink">' ) |
| 90 | + $tocToggleLink = $( '<a href="#" class="internal" id="togglelink"></a>' ) |
91 | 91 | .text( mw.msg( 'hidetoc' ) ) |
92 | 92 | .click( function(e){ |
93 | 93 | e.preventDefault(); |
94 | 94 | util.toggleToc( $(this) ); |
95 | 95 | } ); |
96 | | - $tocTitle.append( $tocToggleLink.wrap( '<span class="toctoggle">' ).parent().prepend( ' [' ).append( '] ' ) ); |
| 96 | + $tocTitle.append( $tocToggleLink.wrap( '<span class="toctoggle"></span>' ).parent().prepend( ' [' ).append( '] ' ) ); |
97 | 97 | |
98 | 98 | if ( hideTocCookie == '1' ) { |
99 | 99 | // Cookie says user want toc hidden |