mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-16 14:15:28 +01:00
On login page, focus the first field on page load for easier logging in.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@397 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
d8ec265ca4
commit
e9e6c33599
1 changed files with 8 additions and 1 deletions
|
|
@ -4,7 +4,14 @@
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<%= stylesheet_link_tag "scaffold" %>
|
||||
<%= javascript_include_tag :defaults %>
|
||||
|
||||
<script type="text/javascript">
|
||||
function setfocus() {
|
||||
var f = $('user_login');
|
||||
if (!f) { f = $('openid_url'); }
|
||||
if (f) { f.focus() };
|
||||
}
|
||||
Event.observe(window, 'load', setfocus);
|
||||
</script>
|
||||
<title><%= @page_title -%></title>
|
||||
|
||||
</head>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue