X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c1f1b99cdcc9924877e1b35272b58e5d8cc5c9fc..4424cd5b947432848fe7f5bc7518fd1b718ecf6c:/app/views/site/_search.rhtml?ds=sidebyside diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index f6d9cb590..43853dcf0 100644 --- a/app/views/site/_search.rhtml +++ b/app/views/site/_search.rhtml @@ -1,31 +1,30 @@ -
- - - - - -
Search ResultsClose
-
-
-
- @@ -33,15 +32,23 @@ <% content_for "optionals" do %>
Search - <% form_remote_tag(:update => :search_results_content, - :loading => "openSearchResults()", + Where am I? +
+ + <% form_remote_tag(:loading => "startSearch()", + :complete => "endSearch()", :url => { :controller => :geocoder, :action => :search }) do %> - <%= text_field_tag :query, params[:query] %> - <% end %> + <%= text_field_tag :query, h(params[:query]) %> + + <%= submit_tag 'Go' %> + <% end %> + +

Searching...

+

examples: 'Alkmaar', 'Regent Street, Cambridge', 'CB2 5AQ', or 'post offices near Lünen' - more examples... + more examples...

<% end %>