Index: branches/wmf/1.19wmf1/resources/mediawiki.special/mediawiki.special.preferences.js |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | /* |
3 | 3 | * JavaScript for Special:Preferences |
4 | 4 | */ |
5 | | -( function( $, mw ) { |
| 5 | +jQuery( document ).ready( function( $ ) { |
6 | 6 | $( '#prefsubmit' ).attr( 'id', 'prefcontrol' ); |
7 | 7 | var $preftoc = $('<ul id="preftoc"></ul>'); |
8 | 8 | var $preferences = $( '#preferences' ) |
— | — | @@ -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 | /** |
— | — | @@ -137,4 +134,4 @@ |
138 | 135 | $tzTextbox.blur( function() { updateTimezoneSelection(); } ); |
139 | 136 | updateTimezoneSelection(); |
140 | 137 | } |
141 | | -} )( jQuery, mediaWiki ); |
\ No newline at end of file |
| 138 | +} ); |
Property changes on: branches/wmf/1.19wmf1 |
___________________________________________________________________ |
Modified: svn:mergeinfo |
142 | 139 | Merged /trunk/phase3:r111802-111803 |