Autofocus in login form
This commit is contained in:
parent
bac34a53a9
commit
1df5f3f764
|
@ -1,11 +1,14 @@
|
|||
<% @title = "#{@web_name} Login" %><% @hide_navigation = true %>
|
||||
|
||||
|
||||
<%= form_tag({ :controller => 'wiki', :action => 'authenticate', :web => @web.address},
|
||||
{'id' => 'loginForm', 'method' => 'post'})
|
||||
%>
|
||||
<p>
|
||||
<%= form_tag({ :controller => 'wiki', :action => 'authenticate', :web => @web.address},
|
||||
{ 'name' => 'loginForm', 'id' => 'loginForm', 'method' => 'post'})
|
||||
%>
|
||||
<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>
|
||||
|
|
Loading…
Reference in a new issue