X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/13289d404188bd397ee72852f66c415a2bb87066..815c98c977831a9a7f84dca49186f5eea7b4a283:/app/views/site/_search.html.erb diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 3391a102b..9adc3dafe 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -15,7 +15,7 @@ $("#sidebar_title").html("<%= t 'site.sidebar.search_results' %>"); <% if params[:action] == 'index' -%> - var extent = getMapExtent(); + var extent = unproj(map.getExtent()); $("#sidebar_content").load("<%= url_for :controller => :geocoder, :action => :search %>", { query: $("#query").val(), @@ -43,18 +43,17 @@ <% content_for :optionals do %>
- <%= t 'site.search.where_am_i' %> -

<%= t 'site.search.search' %>

<%= form_tag "#", :id => "search_form" do %> - <%= text_field_tag :query, h(params[:query]), :tabindex => "1" %> <%= submit_tag t('site.search.submit_text') %> + <%= text_field_tag :query, h(params[:query]), :tabindex => "1", :placeholder => t('site.search.search') %> <% end %>
-

+

<%= raw(t 'site.search.search_help') %> + <%= t 'site.search.where_am_i' %>

<% end %>