Special:Categories: Use mediawiki.ui classes and fix layout
authorPrateek Saxena <prtksxna@gmail.com>
Mon, 22 Sep 2014 22:13:30 +0000 (15:13 -0700)
committerjdlrobson <jdlrobson@gmail.com>
Fri, 26 Sep 2014 00:20:49 +0000 (17:20 -0700)
Bug: 71146
Change-Id: I96c684f6f7b352afd368624d814761f359e7b551

includes/specials/SpecialCategories.php

index 95f9efd..371cd9f 100644 (file)
@@ -180,6 +180,10 @@ class CategoryPager extends AlphabeticPager {
        }
 
        public function getStartForm( $from ) {
+               $submitClassName = '';
+               if ( $this->getConfig( 'UseMediaWikiUIEverywhere' ) ) {
+                       $submitClassName = 'mw-ui-button mw-ui-progressive';
+               }
                return Xml::tags(
                        'form',
                        array( 'method' => 'get', 'action' => wfScript() ),
@@ -188,9 +192,11 @@ class CategoryPager extends AlphabeticPager {
                                        $this->msg( 'categories' )->text(),
                                        Xml::inputLabel(
                                                $this->msg( 'categoriesfrom' )->text(),
-                                               'from', 'from', 20, $from ) .
+                                               'from', 'from', 20, $from, array( 'class' => 'mw-ui-input-inline') ) .
                                                ' ' .
-                                               Xml::submitButton( $this->msg( 'allpagessubmit' )->text()
+                                               Xml::submitButton(
+                                                       $this->msg( 'allpagessubmit' )->text(),
+                                                       array( 'class' => $submitClassName )
                                                )
                                )
                );