[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> <head>
{include="includes"} {include="includes"}
</head> </head>
<body onload="document.addform.post.focus();"> <body>
<div id="pageheader"> <div id="pageheader">
{include="page.header"} {include="page.header"}
<div id="headerform"> <div id="headerform">
<form method="GET" action="" name="addform" class="addform"> <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"> <input type="submit" value="Add link" class="bigbutton">
</form> </form>
</div> </div>

View file

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