afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-07-04 12:14 am

[dw-free] Fix tab ordering on changeemail.bml

[commit: http://hg.dwscoalition.org/dw-free/rev/f52d8c643c52]

http://bugs.dwscoalition.org/show_bug.cgi?id=702

Add tabindex.

Patch by [staff profile] denise.

Files modified:
  • htdocs/changeemail.bml
--------------------------------------------------------------------------------
diff -r 199c406fdb46 -r f52d8c643c52 htdocs/changeemail.bml
--- a/htdocs/changeemail.bml	Sat Jul 04 00:10:56 2009 +0000
+++ b/htdocs/changeemail.bml	Sat Jul 04 00:13:53 2009 +0000
@@ -66,16 +66,16 @@ body<=
         $ret .= "<div>$ML{'.label.oldemail'}<br />\n";
         $ret .= "<b>" . $old_email . "</b></div><br/>\n";
         $ret .= "<div>$ML{'.label.newemail'}<br />\n";
-        $ret .= "<input type='text' name='email' size='50' maxlength='50' /></div><br />\n";
+        $ret .= "<input type='text' name='email' size='50' maxlength='50' tabindex='1' /></div><br />\n";
         unless ($u->is_identity) {
             $ret .= "<div>" . BML::ml('.label.password2', { remote => LJ::ljuser($remote) }) . "<br />\n";
-            $ret .= "<input type='password' name='password' size='50' maxlength='50' /></div>\n";
+            $ret .= "<input type='password' name='password' size='50' maxlength='50' tabindex='2' /></div>\n";
         }
 
         $ret .= "standout?>\n";
         $ret .= "<br />\n";
         $ret .= "<?standout\n";
-        $ret .= "<input type='submit' value=\"$ML{'.btn.change'}\" />\n";
+        $ret .= "<input type='submit' tabindex='3' value=\"$ML{'.btn.change'}\" />\n";
         $ret .= "standout?>\n";
         $ret .= "</form>\n";
         return $ret;
--------------------------------------------------------------------------------