Commit 39410f449a83f76f4e4ee966d348f938760d9629
1 parent
458b63b3
Exists in
master
and in
29 other branches
ActionItem8: adding onload javascript callback to BODY element, to put focus on …
…first control of first form (borrowed from criamos) git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@452 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/layouts/application.rhtml
... | ... | @@ -9,7 +9,7 @@ |
9 | 9 | <%= stylesheet_link_tag 'common' %> |
10 | 10 | </head> |
11 | 11 | |
12 | - <body> | |
12 | + <body onload='javascript: if (document.forms[0] != null && document.forms[0].elements[0] != null) { document.forms[0].elements[0].focus(); }'> | |
13 | 13 | <%= image_tag 'loading.gif', :id => 'spinner', :style => "display:none; float:right;" %> |
14 | 14 | <div id="wrap"> |
15 | 15 | <% unless flash[:notice].nil? %> | ... | ... |