X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f3c751164325e01cc6c2343908d042c3a76dfda6..10b71ba2f66c5bd9c71ab7385da3584ae741ee6e:/app/views/site/_search.rhtml?ds=inline diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index 8e5a8b764..6ddcc851c 100644 --- a/app/views/site/_search.rhtml +++ b/app/views/site/_search.rhtml @@ -1,40 +1,53 @@ + + <% content_for "optionals" do %>
Search - <% form_remote_tag(:update => :search_results_content, - :loading => "openSearchResults()", - :url => { :controller => :geocoder, :action => :search } ) do %> - <%= text_field_tag :query, nil, :size => 16 %> + Where am I? +
+
+ <% form_remote_tag(:loading => "startSearch()", + :complete => "endSearch()", + :url => { :controller => :geocoder, :action => :search }) do %> + <%= 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 %> - -
- - - - - -
Search ResultsClose
-
-
-