follow-up to r111802, we dont need internal document.ready trigger since the entire...
authorRyan Kaldari <kaldari@users.mediawiki.org>
Sat, 18 Feb 2012 00:08:06 +0000 (00:08 +0000)
committerRyan Kaldari <kaldari@users.mediawiki.org>
Sat, 18 Feb 2012 00:08:06 +0000 (00:08 +0000)
resources/mediawiki.special/mediawiki.special.preferences.js

index d827144..e9df83c 100644 (file)
@@ -49,14 +49,11 @@ $legends.each( function( i, legend ) {
 
 // If we've reloaded the page or followed an open-in-new-window,
 // make the selected tab visible.
-// On document ready:
-$( function() {
-       var hash = window.location.hash;
-       if( hash.match( /^#mw-prefsection-[\w-]+/ ) ) {
-               var $tab = $( hash.replace( 'mw-prefsection', 'preftab' ) );
-               $tab.click();
-       }
-} );
+var hash = window.location.hash;
+if( hash.match( /^#mw-prefsection-[\w-]+/ ) ) {
+       var $tab = $( hash.replace( 'mw-prefsection', 'preftab' ) );
+       $tab.click();
+}
 
 
 /**