Commit 39410f449a83f76f4e4ee966d348f938760d9629

Authored by AntonioTerceiro
1 parent 458b63b3

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,7 +9,7 @@
9 <%= stylesheet_link_tag 'common' %> 9 <%= stylesheet_link_tag 'common' %>
10 </head> 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 <%= image_tag 'loading.gif', :id => 'spinner', :style => "display:none; float:right;" %> 13 <%= image_tag 'loading.gif', :id => 'spinner', :style => "display:none; float:right;" %>
14 <div id="wrap"> 14 <div id="wrap">
15 <% unless flash[:notice].nil? %> 15 <% unless flash[:notice].nil? %>