From 907227f260be49e5736b3033c2b67ac1cc3c9326 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 5 Sep 2010 13:21:04 +0000 Subject: [PATCH] (bug 24977) Remove the duplicate Access Key to compare selected revision in history --- RELEASE-NOTES | 2 ++ includes/HistoryPage.php | 14 +++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c45863d5c5..521ae8f419 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -312,6 +312,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 20744) Wiki forgets about an uploaded file * (bug 17913) Don't show "older edit" when no older edit available * (bug 6204) TOC not properly rendered when using $wgMaxTocLevel +* (bug 24977) The accesskey in history page now lead directly to the diff + instead of alterning focus between the two buttons. === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent. diff --git a/includes/HistoryPage.php b/includes/HistoryPage.php index e328e9187e..27c1153395 100644 --- a/includes/HistoryPage.php +++ b/includes/HistoryPage.php @@ -380,15 +380,19 @@ class HistoryPager extends ReverseChronologicalPager { $s .= Html::hidden( 'title', $this->title->getPrefixedDbKey() ) . "\n"; $s .= Html::hidden( 'action', 'historysubmit' ) . "\n"; + $s .= '
' . $this->submitButton( wfMsg( 'compareselectedversions'), + array( 'class' => 'historysubmit' ) ) . "\n"; + $this->buttons = '
'; $this->buttons .= $this->submitButton( wfMsg( 'compareselectedversions'), array( 'class' => 'historysubmit' ) + $wgUser->getSkin()->tooltipAndAccessKeyAttribs( 'compareselectedversions' ) ) . "\n"; + if( $wgUser->isAllowed('deleterevision') ) { $float = $wgContLang->alignEnd(); # Note bug #20966,
'; - $s .= $this->buttons . '