Change != {} to !$.isEmptyObject(): the former always returned true because objects...
[lhc/web/wiklou.git] / resources / Resources.php
index 3d3ca4e..5a1f9d1 100644 (file)
@@ -45,12 +45,12 @@ return array(
                'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'skins.cologneblue' => array(
-               'styles' => array( 'common/cologneblue.css' => array( 'media' => 'screen' ) ),
+               'styles' => array( 'cologneblue/screen.css' => array( 'media' => 'screen' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
                'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
        'skins.nostalgia' => array(
-               'styles' => array( 'common/nostalgia.css' => array( 'media' => 'screen' ) ),
+               'styles' => array( 'nostalgia/screen.css' => array( 'media' => 'screen' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],
                'localBasePath' => $GLOBALS['wgStyleDirectory'],
        ),
@@ -110,10 +110,14 @@ return array(
        ),
        'jquery.expandableField' => array(
                'scripts' => 'resources/jquery/jquery.expandableField.js',
+               'dependencies' => 'jquery.delayedBind',
        ),
        'jquery.form' => array(
                'scripts' => 'resources/jquery/jquery.form.js',
        ),
+       'jquery.getAttrs' => array(
+               'scripts' => 'resources/jquery/jquery.getAttrs.js',
+       ),
        'jquery.highlightText' => array(
                'scripts' => 'resources/jquery/jquery.highlightText.js',
        ),
@@ -483,6 +487,45 @@ return array(
                        'jquery.ui.autocomplete',
                ),
        ),
+       'mediawiki.page.ajaxCategories' => array(
+               'scripts' => 'resources/mediawiki.page/mediawiki.page.ajaxCategories.js',
+               'styles' => 'resources/mediawiki.page/mediawiki.page.ajaxCategories.css',
+               'dependencies' => array(
+                       'jquery.suggestions',
+                       'jquery.ui.dialog',
+                       'mediawiki.Title',
+               ),
+               'messages' => array(
+                       'ajax-add-category',
+                       'ajax-remove-category',
+                       'ajax-edit-category',
+                       'ajax-add-category-submit',
+                       'ajax-confirm-ok',
+                       'ajax-confirm-prompt',
+                       'ajax-confirm-title',
+                       'ajax-confirm-save',
+                       'ajax-confirm-save-all',
+                       'ajax-cancel',
+                       'ajax-add-category-summary',
+                       'ajax-remove-category-summary',
+                       'ajax-edit-category-summary',
+                       'ajax-add-category-question',
+                       'ajax-edit-category-question',
+                       'ajax-remove-category-question',
+                       'ajax-confirm-actionsummary',
+                       'ajax-error-title',
+                       'ajax-error-dismiss',
+                       'ajax-remove-category-error',
+                       'ajax-edit-category-error',
+                       'ajax-category-already-present',
+               ),
+       ),
+       'mediawiki.page.ajaxCategories.init' => array(
+               'scripts' => 'resources/mediawiki.page/mediawiki.page.ajaxCategories.init.js',
+               'dependencies' => array(
+                       'mediawiki.page.ajaxCategories',
+               ),
+       ),
        'mediawiki.libs.jpegmeta' => array(
                'scripts' => 'resources/mediawiki.libs/mediawiki.libs.jpegmeta.js',
        ),
@@ -491,6 +534,10 @@ return array(
                'dependencies' => 'jquery.ui.button',
                'group' => 'mediawiki.action.history',
        ),
+       'mediawiki.action.history.diff' => array(
+               'styles' => 'resources/mediawiki.action/mediawiki.action.history.diff.css',
+               'group' => 'mediawiki.action.history',
+       ),
        'mediawiki.action.edit' => array(
                'scripts' => 'resources/mediawiki.action/mediawiki.action.edit.js',
                'dependencies' => array(
@@ -535,6 +582,7 @@ return array(
        ),
        'mediawiki.special.search' => array(
                'scripts' => 'resources/mediawiki.special/mediawiki.special.search.js',
+               'styles'  => 'resources/mediawiki.special/mediawiki.special.search.css',
        ),
        'mediawiki.special.block' => array(
                'scripts' => 'resources/mediawiki.special/mediawiki.special.block.js',
@@ -636,18 +684,6 @@ return array(
                'localBasePath' => $GLOBALS['wgStyleDirectory'],
                'dependencies' => 'mediawiki.legacy.wikibits',
        ),
-       'mediawiki.legacy.diff' => array(
-               'styles' => 'common/diff.css',
-               'group' => 'mediawiki.action.history',
-               'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => $GLOBALS['wgStyleDirectory'],
-       ),
-       'mediawiki.legacy.edit' => array(
-               'scripts' => 'common/edit.js',
-               'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => $GLOBALS['wgStyleDirectory'],
-               'dependencies' => 'mediawiki.legacy.wikibits',
-       ),
        'mediawiki.legacy.IEFixes' => array(
                'scripts' => 'common/IEFixes.js',
                'remoteBasePath' => $GLOBALS['wgStylePath'],
@@ -669,13 +705,6 @@ return array(
                        'jquery.byteLimit',
                ),
        ),
-       'mediawiki.legacy.search' => array(
-               'scripts' => 'common/search.js',
-               'remoteBasePath' => $GLOBALS['wgStylePath'],
-               'localBasePath' => $GLOBALS['wgStyleDirectory'],
-               'styles' => 'common/search.css',
-               'dependencies' => 'mediawiki.legacy.wikibits',
-       ),
        'mediawiki.legacy.shared' => array(
                'styles' => array( 'common/shared.css' => array( 'media' => 'screen' ) ),
                'remoteBasePath' => $GLOBALS['wgStylePath'],