From a54893704e70ba0b87a9cc67cdf9d243c8a2b7b5 Mon Sep 17 00:00:00 2001 From: Prateek Saxena Date: Wed, 24 Sep 2014 18:46:16 -0700 Subject: [PATCH] HistoryAction: Use correct classes for buttons Bug: 71141 Change-Id: I95ac411e7c06d3b7aec966527f196ef347f1c710 --- includes/actions/HistoryAction.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 ) -- 2.20.1