Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js |
— | — | @@ -70,12 +70,12 @@ |
71 | 71 | $( '.mw-collapsible' ).makeCollapsible(); |
72 | 72 | |
73 | 73 | /* Table of Contents toggle */ |
74 | | - var $tocContainer = $( '#toc' ), |
| 74 | + var $tocContainer = $( '#toc' ), |
75 | 75 | $tocTitle = $( '#toctitle' ), |
76 | 76 | $tocToggleLink = $( '#togglelink' ); |
77 | 77 | // Only add it if there is a TOC and there is no toggle added already |
78 | 78 | if ( $tocContainer.size() && $tocTitle.size() && !$tocToggleLink.size() ) { |
79 | | - var hideTocCookie = $.cookie( 'mw_hidetoc' ), |
| 79 | + var hideTocCookie = $.cookie( 'mw_hidetoc' ); |
80 | 80 | $tocToggleLink = $( '<a href="#" class="internal" id="togglelink">' ).text( mw.msg( 'hidetoc' ) ).click( function(e){ |
81 | 81 | e.preventDefault(); |
82 | 82 | mw.util.toggleToc( $(this) ); |
— | — | @@ -146,7 +146,7 @@ |
147 | 147 | * @return String boolean visibility of the toc (true means it's visible) |
148 | 148 | */ |
149 | 149 | 'toggleToc' : function( $toggleLink ) { |
150 | | - var $tocList = $( '#toc ul:first' ), |
| 150 | + var $tocList = $( '#toc ul:first' ); |
151 | 151 | |
152 | 152 | if ( $tocList.is( ':hidden' ) ) { |
153 | 153 | $tocList.slideDown( 'fast' ); |