Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js |
— | — | @@ -201,6 +201,7 @@ |
202 | 202 | if ( $tocList.is( ':hidden' ) ) { |
203 | 203 | $tocList.slideDown( 'fast', callback ); |
204 | 204 | $toggleLink.text( mw.msg( 'hidetoc' ) ); |
| 205 | + $( '#toc' ).removeClass( 'tochidden' ); |
205 | 206 | $.cookie( 'mw_hidetoc', null, { |
206 | 207 | expires: 30, |
207 | 208 | path: '/' |
— | — | @@ -209,6 +210,7 @@ |
210 | 211 | } else { |
211 | 212 | $tocList.slideUp( 'fast', callback ); |
212 | 213 | $toggleLink.text( mw.msg( 'showtoc' ) ); |
| 214 | + $( '#toc' ).addClass( 'tochidden' ); |
213 | 215 | $.cookie( 'mw_hidetoc', '1', { |
214 | 216 | expires: 30, |
215 | 217 | path: '/' |