From: Tom Hughes Date: Tue, 20 Oct 2009 23:20:07 +0000 (+0000) Subject: Set method and action on the search box to something that works so that X-Git-Tag: live~6538 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/6ce5986a5229408757cfdccaed3d5995376b0511 Set method and action on the search box to something that works so that the "Add keyword for..." feature in Fierefox works. --- diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 12b8bccc5..8e18d0e97 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -27,7 +27,8 @@
<% form_remote_tag(:loading => "startSearch()", :complete => "endSearch()", - :url => { :controller => :geocoder, :action => :search }) do %> + :url => { :controller => :geocoder, :action => :search }, + :html => { :method => "get", :action => url_for(:action => "index") }) do %> <%= text_field_tag :query, h(params[:query]) %> <%= submit_tag t('site.search.submit_text') %> <% end %>