Merge "Special:BlockList: Use mw-ui-progressive for search button"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 23 Sep 2014 23:34:28 +0000 (23:34 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 23 Sep 2014 23:34:28 +0000 (23:34 +0000)
includes/htmlform/HTMLForm.php
includes/specials/SpecialBlockList.php

index d582da3..4b8b5a0 100644 (file)
@@ -1051,6 +1051,14 @@ class HTMLForm extends ContextSource {
                $this->mSubmitModifierClass = 'mw-ui-destructive';
        }
 
+       /**
+        * Identify that the submit button in the form has a progressive action
+        *
+        */
+       public function setSubmitProgressive() {
+               $this->mSubmitModifierClass = 'mw-ui-progressive';
+       }
+
        /**
         * Set the text for the submit button to a message
         * @since 1.19
index 456f4ec..aefd99a 100644 (file)
@@ -103,6 +103,7 @@ class SpecialBlockList extends SpecialPage {
                $form->setMethod( 'get' );
                $form->setWrapperLegendMsg( 'ipblocklist-legend' );
                $form->setSubmitTextMsg( 'ipblocklist-submit' );
+               $form->setSubmitProgressive();
                $form->prepareForm();
 
                $form->displayForm( '' );