* Set tabindex on fields in deletion form so you don't have to tab through
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 23 Dec 2006 07:18:51 +0000 (07:18 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 23 Dec 2006 07:18:51 +0000 (07:18 +0000)
  the links in the sitenotice

RELEASE-NOTES
includes/Article.php

index b85d503..1d3c78b 100644 (file)
@@ -387,6 +387,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   A more thorough blacklist for forbidden and translatable characters would
   be wise, though, as might a cleaner method for the lists in the first place.
 * Fix regression in email password resets on read-restricted sites
+* Set tabindex on fields in deletion form so you don't have to tab through
+  the links in the sitenotice
 
 
 == Languages updated ==
index bb698f7..e17aad7 100644 (file)
@@ -1899,7 +1899,7 @@ class Article {
                $confirm = htmlspecialchars( wfMsg( 'deletepage' ) );
                $delcom = htmlspecialchars( wfMsg( 'deletecomment' ) );
                $token = htmlspecialchars( $wgUser->editToken() );
-               $watch = Xml::checkLabel( wfMsg( 'watchthis' ), 'wpWatch', 'wpWatch', $wgUser->getBoolOption( 'watchdeletion' ) || $this->mTitle->userIsWatching() );
+               $watch = Xml::checkLabel( wfMsg( 'watchthis' ), 'wpWatch', 'wpWatch', $wgUser->getBoolOption( 'watchdeletion' ) || $this->mTitle->userIsWatching(), array( 'tabindex' => '2' ) );
 
                $wgOut->addHTML( "
 <form id='deleteconfirm' method='post' action=\"{$formaction}\">
@@ -1909,7 +1909,7 @@ class Article {
                                <label for='wpReason'>{$delcom}:</label>
                        </td>
                        <td align='left'>
-                               <input type='text' size='60' name='wpReason' id='wpReason' value=\"" . htmlspecialchars( $reason ) . "\" />
+                               <input type='text' size='60' name='wpReason' id='wpReason' value=\"" . htmlspecialchars( $reason ) . "\" tabindex=\"1\" />
                        </td>
                </tr>
                <tr>
@@ -1919,7 +1919,7 @@ class Article {
                <tr>
                        <td>&nbsp;</td>
                        <td>
-                               <input type='submit' name='wpConfirmB' id='wpConfirmB' value=\"{$confirm}\" />
+                               <input type='submit' name='wpConfirmB' id='wpConfirmB' value=\"{$confirm}\" tabindex=\"3\" />
                        </td>
                </tr>
        </table>