From: Leo Koppelkamm Date: Thu, 14 Apr 2011 13:52:08 +0000 (+0000) Subject: Followup to r86047: Declare dependency to JUI button more cleanly X-Git-Tag: 1.31.0-rc.0~30849 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=12ce9a40dc3b95c8df026fa7ab0edbf8c2a5c5ab;p=lhc%2Fweb%2Fwiklou.git Followup to r86047: Declare dependency to JUI button more cleanly --- diff --git a/resources/Resources.php b/resources/Resources.php index 4cc7ac13c3..dc1c799e63 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -550,7 +550,7 @@ return array( 'group' => 'mediawiki.action.history', 'remoteBasePath' => $GLOBALS['wgStylePath'], 'localBasePath' => "{$GLOBALS['IP']}/skins", - 'dependencies' => 'mediawiki.legacy.wikibits', + 'dependencies' => array( 'mediawiki.legacy.wikibits', 'jquery.ui.button' ), ), 'mediawiki.legacy.IEFixes' => array( 'scripts' => 'common/IEFixes.js', diff --git a/resources/mediawiki.action/mediawiki.action.history.js b/resources/mediawiki.action/mediawiki.action.history.js index fb62d65e49..acf4e290cd 100644 --- a/resources/mediawiki.action/mediawiki.action.history.js +++ b/resources/mediawiki.action/mediawiki.action.history.js @@ -5,7 +5,5 @@ jQuery( function( $ ) { // Replaces histrowinit $( '#pagehistory li input[name="diff"], #pagehistory li input[name="oldid"]' ).click( diffcheck ); diffcheck(); - mediaWiki.loader.using('jquery.ui.button', function() { - window.fixCompare(); - }); + window.fixCompare(); }); \ No newline at end of file