Autofocus in login form

This commit is contained in:
Alexey Verkhovsky 2005-04-05 12:47:59 +00:00
parent bac34a53a9
commit 1df5f3f764

View file

@ -1,11 +1,14 @@
<% @title = "#{@web_name} Login" %><% @hide_navigation = true %>
<p>
<%= form_tag({ :controller => 'wiki', :action => 'authenticate', :web => @web.address},
{'id' => 'loginForm', 'method' => 'post'})
{ 'name' => 'loginForm', 'id' => 'loginForm', 'method' => 'post'})
%>
<p>
<b>Password</b><br />
<input type="password" name="password" />
</p>
<input type="password" name="password" id="password" default="yes" />
<%= end_form_tag %>
</p>
<script language="JavaScript">
document.forms["loginForm"].elements["password"].focus();
</script>