From: Fomafix Date: Fri, 1 Sep 2017 21:39:30 +0000 (+0200) Subject: mediawiki.special.changeslist.legend.js: Remove wait for document ready X-Git-Tag: 1.31.0-rc.0~2234^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=792e339124ff9e5a258cd054a0a2bbd5f283068f;p=lhc%2Fweb%2Fwiklou.git mediawiki.special.changeslist.legend.js: Remove wait for document ready mw.hook( 'wikipage.content' ) gets fired after document ready. Change-Id: Ia1536e734f8ae08cc7cc07c3b1854bdaafb54866 --- diff --git a/resources/src/mediawiki.special/mediawiki.special.changeslist.legend.js b/resources/src/mediawiki.special/mediawiki.special.changeslist.legend.js index a991d36a6d..079276265e 100644 --- a/resources/src/mediawiki.special/mediawiki.special.changeslist.legend.js +++ b/resources/src/mediawiki.special/mediawiki.special.changeslist.legend.js @@ -3,7 +3,7 @@ */ /* Remember the collapse state of the legend on recent changes and watchlist pages. */ -( function ( mw, $ ) { +( function ( mw ) { var cookieName = 'changeslist-state', // Expanded by default @@ -20,7 +20,5 @@ } ); }; - $( function () { - mw.hook( 'wikipage.content' ).add( doCollapsibleLegend ); - } ); -}( mediaWiki, jQuery ) ); + mw.hook( 'wikipage.content' ).add( doCollapsibleLegend ); +}( mediaWiki ) );