From: Prateek Saxena Date: Tue, 23 Sep 2014 22:24:51 +0000 (-0700) Subject: Special:BlockList: Use mw-ui-progressive for search button X-Git-Tag: 1.31.0-rc.0~13858^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%22id_auteur=%24connect_id_auteur%22%29%20.%20%22?a=commitdiff_plain;h=279d4e2883a3353a48aba0e157b87bc71017bfb8;p=lhc%2Fweb%2Fwiklou.git Special:BlockList: Use mw-ui-progressive for search button Bug: 71144 Change-Id: I56969edb6651a26ff2579e1ed9f9da34a9536e46 --- diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index d582da3b9d..4b8b5a026c 100644 --- a/includes/htmlform/HTMLForm.php +++ b/includes/htmlform/HTMLForm.php @@ -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 diff --git a/includes/specials/SpecialBlockList.php b/includes/specials/SpecialBlockList.php index 456f4ecb5b..aefd99ad41 100644 --- a/includes/specials/SpecialBlockList.php +++ b/includes/specials/SpecialBlockList.php @@ -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( '' );