Index: trunk/phase3/resources/mediawiki.special/mediawiki.special.preferences.js |
— | — | @@ -49,14 +49,11 @@ |
50 | 50 | |
51 | 51 | // If we've reloaded the page or followed an open-in-new-window, |
52 | 52 | // make the selected tab visible. |
53 | | -// On document ready: |
54 | | -$( function() { |
55 | | - var hash = window.location.hash; |
56 | | - if( hash.match( /^#mw-prefsection-[\w-]+/ ) ) { |
57 | | - var $tab = $( hash.replace( 'mw-prefsection', 'preftab' ) ); |
58 | | - $tab.click(); |
59 | | - } |
60 | | -} ); |
| 53 | +var hash = window.location.hash; |
| 54 | +if( hash.match( /^#mw-prefsection-[\w-]+/ ) ) { |
| 55 | + var $tab = $( hash.replace( 'mw-prefsection', 'preftab' ) ); |
| 56 | + $tab.click(); |
| 57 | +} |
61 | 58 | |
62 | 59 | |
63 | 60 | /** |