[upd] replace js focus by html5 autofocus

This commit is contained in:
Knah Tsaeb 2015-07-03 10:08:37 +02:00
parent c5eeb78c3c
commit 62c55f9c8c
2 changed files with 4 additions and 4 deletions

View File

@ -3,12 +3,12 @@
<head>
{include="includes"}
</head>
<body onload="document.addform.post.focus();">
<body>
<div id="pageheader">
{include="page.header"}
<div id="headerform">
<form method="GET" action="" name="addform" class="addform">
<input type="text" name="post">
<input type="text" name="post" autofocus>
<input type="submit" value="Add link" class="bigbutton">
</form>
</div>

View File

@ -3,13 +3,13 @@
<head>
{include="includes"}
</head>
<body onload="document.changepasswordform.oldpassword.focus();">
<body>
<div id="pageheader">
{include="page.header"}
<form method="POST" action="" name="changepasswordform" id="changepasswordform">
<p>
<label for="oldpassword">Old password:</label>
<input type="password" name="oldpassword" id="oldpassword" />
<input type="password" name="oldpassword" id="oldpassword" autofocus/>
</p>
<p>
<label for="setpassword">New password:</label>