Commit d6683cda4ab22e4a3309551e61e64e2e2de3e885
1 parent
4509da65
Exists in
master
and in
29 other branches
ActionItem493: focus ok!
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2110 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
11 additions
and
3 deletions
Show diff stats
app/views/search/_search_form.rhtml
... | ... | @@ -11,7 +11,8 @@ |
11 | 11 | <div class="search-field"> |
12 | 12 | <span class="formfield"> |
13 | 13 | <%= text_field_tag 'query', @query, :id => ( lightbox? ? 'popup-search-input' : '' ), :size => 50 %> |
14 | - <%= javascript_tag '$("popup-search-input").focus()' if lightbox? %> | |
14 | + <%# javascript_tag 'alert(123); alert( $("popup-search-input") )' if lightbox? %> | |
15 | + <%= javascript_tag 'setTimeout( $("popup-search-input").focus(), 10 )' if lightbox? %> | |
15 | 16 | </span> |
16 | 17 | <%= submit_button(:search, _('Search'), :name => :search_whole_site_no) %> |
17 | 18 | <% if @category %> |
... | ... | @@ -24,8 +25,15 @@ |
24 | 25 | <h4><%= _('Search within:') %></h4> |
25 | 26 | <br style='clear:left'/> |
26 | 27 | <div> |
27 | - <label for="search-radius"><%= _('Distance (km): ') %></label><%= text_field_tag 'radius', '',:id => 'search-radius' %> | |
28 | - <label for="search_region"><%= _('From: ') %></label><%= text_field :region, :name, :id => 'search_region' %> | |
28 | + <span class="formfield"> | |
29 | + <label for="search-radius"><%= _('Distance (km):') %></label> | |
30 | + <%= text_field_tag 'radius', '', :id => 'search-radius', :size => 3 %> | |
31 | + </span> | |
32 | + | |
33 | + <span class="formfield"> | |
34 | + <label for="search_region"><%= _('From:') %></label> | |
35 | + <%= text_field :region, :name, :id => 'search_region', :size => 30 %> | |
36 | + </span> | |
29 | 37 | <div id='search_region_auto_complete' class='auto-complete'></div> |
30 | 38 | <%= auto_complete_field('search_region', :url => {:action => 'complete_region'}) %> |
31 | 39 | </div> | ... | ... |