]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_search.html.erb
Restore autofocusing of the search field
[rails.git] / app / views / layouts / _search.html.erb
index 1d054d5cd6b801dce858f589a230667c15a4089e..55ce54219eab18da9719f06686bf59aec44c9af4 100644 (file)
@@ -1,7 +1,7 @@
 <%= form_tag search_path, :class => "search_form" do %>
   <%= submit_tag t('site.search.submit_text') %>
   <div class='query_wrapper'>
-    <input type="text" name="query" value="<%= params[:query] %>" placeholder="<%= t('site.search.search') %>">
+    <input type="text" name="query" value="<%= params[:query] %>" placeholder="<%= t('site.search.search') %>" autofocus>
     <%= link_to t('site.search.where_am_i'), '#', { :class => "describe_location", :title => t('site.search.where_am_i_title') } %>
   </div>
 <% end %>