Autofocus in login form
This commit is contained in:
parent
bac34a53a9
commit
1df5f3f764
|
@ -1,11 +1,14 @@
|
||||||
<% @title = "#{@web_name} Login" %><% @hide_navigation = true %>
|
<% @title = "#{@web_name} Login" %><% @hide_navigation = true %>
|
||||||
|
|
||||||
|
<p>
|
||||||
<%= form_tag({ :controller => 'wiki', :action => 'authenticate', :web => @web.address},
|
<%= form_tag({ :controller => 'wiki', :action => 'authenticate', :web => @web.address},
|
||||||
{'id' => 'loginForm', 'method' => 'post'})
|
{ 'name' => 'loginForm', 'id' => 'loginForm', 'method' => 'post'})
|
||||||
%>
|
%>
|
||||||
<p>
|
|
||||||
<b>Password</b><br />
|
<b>Password</b><br />
|
||||||
<input type="password" name="password" />
|
<input type="password" name="password" id="password" default="yes" />
|
||||||
</p>
|
|
||||||
<%= end_form_tag %>
|
<%= end_form_tag %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<script language="JavaScript">
|
||||||
|
document.forms["loginForm"].elements["password"].focus();
|
||||||
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue