]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/map.html.erb
Don't autofocus search, fade out "Where am I?" on focus
[rails.git] / app / views / layouts / map.html.erb
index 09c7d0d8e90646335db7661a816fbe8cc06f5223..7019224861b69bf76006196dec15971b663d7bdd 100644 (file)
@@ -8,8 +8,10 @@
       <%= submit_tag t('site.search.submit_text') %>
       <div id='query_wrapper'>
         <%= text_field_tag :query, params[:query],
-                           :placeholder => t('site.search.search'),
-                           :autofocus => "autofocus" %>
+                           :placeholder => t('site.search.search') %>
+        <%= link_to t('site.search.where_am_i'),
+                    { :controller => :geocoder, :action => :description },
+                    { :id => "describe_location", :title => t('site.search.where_am_i_title') } %>
       </div>
     <% end %>