Followup to r86047: Declare dependency to JUI button more cleanly
authorLeo Koppelkamm <diebuche@users.mediawiki.org>
Thu, 14 Apr 2011 13:52:08 +0000 (13:52 +0000)
committerLeo Koppelkamm <diebuche@users.mediawiki.org>
Thu, 14 Apr 2011 13:52:08 +0000 (13:52 +0000)
resources/Resources.php
resources/mediawiki.action/mediawiki.action.history.js

index 4cc7ac1..dc1c799 100644 (file)
@@ -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',
index fb62d65..acf4e29 100644 (file)
@@ -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