r63692 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63691‎ | r63692 | r63693 >
Date:17:35, 13 March 2010
Author:raymond
Status:ok
Tags:
Comment:
Add accesskeys 's' for save actions
Modified paths:
  • /trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php (modified) (history)
  • /trunk/extensions/AbuseFilter/Views/AbuseFilterViewImport.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewImport.php
@@ -11,7 +11,10 @@
1212 $wgOut->addWikiMsg( 'abusefilter-import-intro' );
1313
1414 $html = Xml::textarea( 'wpImportText', '', 40, 20 );
15 - $html .= Xml::submitButton( wfMsg( 'abusefilter-import-submit' ) );
 15+ $html .= Xml::submitButton(
 16+ wfMsg( 'abusefilter-import-submit' ),
 17+ array( 'accesskey' => 's' )
 18+ );
1619 $url = SpecialPage::getTitleFor( 'AbuseFilter', 'new' )->getFullURL();
1720
1821 $html = Xml::tags( 'form', array( 'method' => 'post', 'action' => $url ), $html );
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php
@@ -423,7 +423,7 @@
424424 );
425425
426426 if ( $this->canEdit() ) {
427 - $form .= Xml::submitButton( wfMsg( 'abusefilter-edit-save' ) );
 427+ $form .= Xml::submitButton( wfMsg( 'abusefilter-edit-save' ), array( 'accesskey' => 's' ) );
428428 $form .= Xml::hidden(
429429 'wpEditToken',
430430 $wgUser->editToken( array( 'abusefilter', $filter ) )

Status & tagging log