From: Prateek Saxena Date: Thu, 25 Sep 2014 01:46:16 +0000 (-0700) Subject: HistoryAction: Use correct classes for buttons X-Git-Tag: 1.31.0-rc.0~13759^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/message.php?a=commitdiff_plain;h=a54893704e70ba0b87a9cc67cdf9d243c8a2b7b5;p=lhc%2Fweb%2Fwiklou.git HistoryAction: Use correct classes for buttons Bug: 71141 Change-Id: I95ac411e7c06d3b7aec966527f196ef347f1c710 --- diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 8522e560b3..99006ed10d 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -181,6 +181,10 @@ class HistoryAction extends FormlessAction { // Add the general form $action = htmlspecialchars( wfScript() ); + $className = 'historysubmit mw-history-compareselectedversions-button'; + if ( $config->get( 'UseMediaWikiUIEverywhere' ) ) { + $className .= ' mw-ui-button mw-ui-progressive'; + } $out->addHTML( "
" . Xml::fieldset( @@ -196,7 +200,10 @@ class HistoryAction extends FormlessAction { ) . ' ' . ( $tagSelector ? ( implode( ' ', $tagSelector ) . ' ' ) : '' ) . $checkDeleted . - Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) . "\n" . + Xml::submitButton( + $this->msg( 'allpagessubmit' )->text(), + array( 'class' => $className ) + ) . "\n" . '
' ); @@ -486,7 +493,7 @@ class HistoryPager extends ReverseChronologicalPager { $this->buttons = '
'; $className = 'historysubmit mw-history-compareselectedversions-button'; if ( $this->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) { - $className .= ' mw-ui-button mw-ui-constructive'; + $className .= ' mw-ui-button'; } $this->buttons .= $this->submitButton( $this->msg( 'compareselectedversions' )->text(), array( 'class' => $className )