Skip to content

Commit

Permalink
set focus for authentication-input
Browse files Browse the repository at this point in the history
  • Loading branch information
speendo committed May 27, 2012
1 parent 817866c commit e4081ce
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions webscripts/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,13 @@ function passPhraseForm($completeURL) {
<html>\n
<head>\n
<title>Authentication</title>\n
<script type=\"text/javascript\">\n
function setFocus() {\n
document.getElementById(\"pass\").focus();\n
}\n
</script>\n
</head>\n
<body>\n
<body onload=\"setFocus()\">\n
\n
<p>$message</p>\n
\n
Expand All @@ -157,7 +162,7 @@ function passPhraseForm($completeURL) {
<input type=\"hidden\" name=\"short\" value=\"$short\">
<input type=\"hidden\" name=\"path\" value=\"$path\">
<p>Passphrase:<br><input name=\"pass\" type=\"text\" value=\"$inputPhrase\" size=\"20\" maxlength=\"40\"></p>\n
<p>Passphrase:<br><input name=\"pass\" type=\"text\" id=\"pass\" value=\"$inputPhrase\" size=\"20\" maxlength=\"40\"></p>\n
\n
<input type=\"submit\" value=\" Submit \">\n
\n
Expand Down

0 comments on commit e4081ce

Please sign in to comment.