X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7014cdb32cf0024e169204da49486048f08b1ca2..0033fcbf1286ebad5c9d9afe3d516f400d90af64:/app/views/site/_search.html.erb diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 8c5bd8b80..dcb7301d9 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -55,6 +55,12 @@ <% end %> } + document.observe("dom:loaded", function () { + $("search_form").observe("ajax:before", setSearchViewbox); + $("search_form").observe("ajax:loading", startSearch); + $("search_form").observe("ajax:complete", endSearch); + }); + <% if params[:query] %> <%= remote_function(:loading => "startSearch()", :url => { :controller => :geocoder, :action => :search, :query => h(params[:query]) }) %> @@ -62,24 +68,21 @@ // --> -<% content_for "optionals" do %> +<% content_for :optionals do %>
- <%= t 'site.search.search_help' %> + <%= raw(t 'site.search.search_help') %>