From: Ryan Kaldari Date: Sat, 18 Feb 2012 00:08:06 +0000 (+0000) Subject: follow-up to r111802, we dont need internal document.ready trigger since the entire... X-Git-Tag: 1.31.0-rc.0~24645 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=85152caf48f985273ddff9473f3b828d6a90a3ce;p=lhc%2Fweb%2Fwiklou.git follow-up to r111802, we dont need internal document.ready trigger since the entire js file is inside a document.ready trigger now --- diff --git a/resources/mediawiki.special/mediawiki.special.preferences.js b/resources/mediawiki.special/mediawiki.special.preferences.js index d82714422c..e9df83c760 100644 --- a/resources/mediawiki.special/mediawiki.special.preferences.js +++ b/resources/mediawiki.special/mediawiki.special.preferences.js @@ -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(); +} /**