diff --git a/app/views/search/_search_form.rhtml b/app/views/search/_search_form.rhtml index d611bb3..b8b95cd 100644 --- a/app/views/search/_search_form.rhtml +++ b/app/views/search/_search_form.rhtml @@ -11,7 +11,8 @@
<%= text_field_tag 'query', @query, :id => ( lightbox? ? 'popup-search-input' : '' ), :size => 50 %> - <%= javascript_tag '$("popup-search-input").focus()' if lightbox? %> + <%# javascript_tag 'alert(123); alert( $("popup-search-input") )' if lightbox? %> + <%= javascript_tag 'setTimeout( $("popup-search-input").focus(), 10 )' if lightbox? %> <%= submit_button(:search, _('Search'), :name => :search_whole_site_no) %> <% if @category %> @@ -24,8 +25,15 @@

<%= _('Search within:') %>


- <%= text_field_tag 'radius', '',:id => 'search-radius' %> - <%= text_field :region, :name, :id => 'search_region' %> + + + <%= text_field_tag 'radius', '', :id => 'search-radius', :size => 3 %> + +   + + + <%= text_field :region, :name, :id => 'search_region', :size => 30 %> +
<%= auto_complete_field('search_region', :url => {:action => 'complete_region'}) %>
-- libgit2 0.21.2