X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.action%2Fmediawiki.action.view.redirect.js;h=2a2a01d48e0533717f7d53bf935772f9cc4c3d20;hb=8a6dc7e6af7eaa5c623c5b1534b49f0e517388e1;hp=39a122d98103cc81889ecb131e8659c0e6e0cc15;hpb=8f0a0ce08563a55d76efa2e969dce536bdf1dfec;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.action/mediawiki.action.view.redirect.js b/resources/src/mediawiki.action/mediawiki.action.view.redirect.js index 39a122d981..2a2a01d48e 100644 --- a/resources/src/mediawiki.action/mediawiki.action.view.redirect.js +++ b/resources/src/mediawiki.action/mediawiki.action.view.redirect.js @@ -5,7 +5,7 @@ * This is loaded in the top queue, so avoid unnecessary dependencies * like mediawiki.Title or mediawiki.Uri. */ -( function ( mw, $ ) { +( function () { var profile = $.client.profile(), canonical = mw.config.get( 'wgInternalRedirectTargetUrl' ), fragment = null, @@ -31,7 +31,7 @@ history.replaceState( /* data= */ history.state, /* title= */ document.title, /* url= */ canonical ); if ( shouldChangeFragment ) { // Specification for history.replaceState() doesn't require browser to scroll, - // so scroll to be sure (see also T110501). Support for IE9 and IE10. + // so scroll to be sure (see also T110501). Support for IE10. node = document.getElementById( fragment.slice( 1 ) ); if ( node ) { node.scrollIntoView(); @@ -62,4 +62,4 @@ } ); } -}( mediaWiki, jQuery ) ); +}() );