]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_search.html.erb
Update map state when following a client side route
[rails.git] / app / views / layouts / _search.html.erb
index 1d054d5cd6b801dce858f589a230667c15a4089e..ed548e21c78c8671918b7f5223a2a21ceb597030 100644 (file)
@@ -1,7 +1,7 @@
-<%= form_tag search_path, :class => "search_form" do %>
+<form method="GET" action="<%= search_path %>" class="search_form">
   <%= submit_tag t('site.search.submit_text') %>
   <div class='query_wrapper'>
   <%= submit_tag t('site.search.submit_text') %>
   <div class='query_wrapper'>
-    <input type="text" name="query" value="<%= params[:query] %>" placeholder="<%= t('site.search.search') %>">
+    <%= text_field_tag "query", params[:query], :placeholder => t("site.search.search"), :autofocus => autofocus %>
     <%= link_to t('site.search.where_am_i'), '#', { :class => "describe_location", :title => t('site.search.where_am_i_title') } %>
   </div>
     <%= link_to t('site.search.where_am_i'), '#', { :class => "describe_location", :title => t('site.search.where_am_i_title') } %>
   </div>
-<% end %>
+</form>