Commit b67513fe0540c00d8a5bb0dde70395934fe3130c

Authored by AurelioAHeckert
1 parent d6683cda

ActionItem493: focus ups!

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2111 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
app/views/search/_search_form.rhtml
@@ -11,8 +11,7 @@ @@ -11,8 +11,7 @@
11 <div class="search-field"> 11 <div class="search-field">
12 <span class="formfield"> 12 <span class="formfield">
13 <%= text_field_tag 'query', @query, :id => ( lightbox? ? 'popup-search-input' : '' ), :size => 50 %> 13 <%= text_field_tag 'query', @query, :id => ( lightbox? ? 'popup-search-input' : '' ), :size => 50 %>
14 - <%# javascript_tag 'alert(123); alert( $("popup-search-input") )' if lightbox? %>  
15 - <%= javascript_tag 'setTimeout( $("popup-search-input").focus(), 10 )' if lightbox? %> 14 + <%= javascript_tag 'setTimeout("$(\"popup-search-input\").focus()", 10 )' if lightbox? %>
16 </span> 15 </span>
17 <%= submit_button(:search, _('Search'), :name => :search_whole_site_no) %> 16 <%= submit_button(:search, _('Search'), :name => :search_whole_site_no) %>
18 <% if @category %> 17 <% if @category %>