mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Add accesskeys 's' for save actions
This commit is contained in:
parent
ac8439bd8a
commit
de5b7258b9
|
@ -423,7 +423,7 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
);
|
||||
|
||||
if ( $this->canEdit() ) {
|
||||
$form .= Xml::submitButton( wfMsg( 'abusefilter-edit-save' ) );
|
||||
$form .= Xml::submitButton( wfMsg( 'abusefilter-edit-save' ), array( 'accesskey' => 's' ) );
|
||||
$form .= Xml::hidden(
|
||||
'wpEditToken',
|
||||
$wgUser->editToken( array( 'abusefilter', $filter ) )
|
||||
|
|
|
@ -11,7 +11,10 @@ class AbuseFilterViewImport extends AbuseFilterView {
|
|||
$wgOut->addWikiMsg( 'abusefilter-import-intro' );
|
||||
|
||||
$html = Xml::textarea( 'wpImportText', '', 40, 20 );
|
||||
$html .= Xml::submitButton( wfMsg( 'abusefilter-import-submit' ) );
|
||||
$html .= Xml::submitButton(
|
||||
wfMsg( 'abusefilter-import-submit' ),
|
||||
array( 'accesskey' => 's' )
|
||||
);
|
||||
$url = SpecialPage::getTitleFor( 'AbuseFilter', 'new' )->getFullURL();
|
||||
|
||||
$html = Xml::tags( 'form', array( 'method' => 'post', 'action' => $url ), $html );
|
||||
|
|
Loading…
Reference in a new issue