From 6ce5986a5229408757cfdccaed3d5995376b0511 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 20 Oct 2009 23:20:07 +0000 Subject: [PATCH] Set method and action on the search box to something that works so that the "Add keyword for..." feature in Fierefox works. --- app/views/site/_search.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 %> -- 2.39.5