Compare selected revisions on history page is marked with a class
authorjdlrobson <jdlrobson@gmail.com>
Thu, 28 Mar 2019 22:04:24 +0000 (15:04 -0700)
committerJdlrobson <jrobson@wikimedia.org>
Thu, 28 Mar 2019 22:05:25 +0000 (22:05 +0000)
Help distinguish the controls for comparing revisions from the rest
of the content in the history page.

Change-Id: Ief8eb8a414c0ff2876f576f296145a94c5636962

includes/actions/pagers/HistoryPager.php

index b333372..9c82d1c 100644 (file)
@@ -183,7 +183,7 @@ class HistoryPager extends ReverseChronologicalPager {
                $s .= Html::hidden( 'type', 'revision' ) . "\n";
 
                // Button container stored in $this->buttons for re-use in getEndBody()
-               $this->buttons = '<div>';
+               $this->buttons = Html::openElement( 'div', [ 'class' => 'mw-history-compareselectedversions' ] );
                $className = 'historysubmit mw-history-compareselectedversions-button';
                $attrs = [ 'class' => $className ]
                        + Linker::tooltipAndAccesskeyAttribs( 'compareselectedversions' );