X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4f23e718b4a46c514843b9fd5e53fc8a9aabd694..957d75295b2c379b17e61a2a22ee28fb5f701589:/app/views/geocoder/results.html.erb diff --git a/app/views/geocoder/results.html.erb b/app/views/geocoder/results.html.erb index 694d0eadb..d990b7f0e 100644 --- a/app/views/geocoder/results.html.erb +++ b/app/views/geocoder/results.html.erb @@ -1,21 +1,15 @@ <% if @results.empty? %> -

<%= t 'geocoder.results.no_results' %>

+

<%= t 'geocoder.results.no_results' %>

<% else %> - <% @results.each do |result| %> -

<%= result_to_html(result) %>

- <% end %> + <% if @more_params %> -
-

<%= - startSpinner = update_page do |page| - page.replace_html "search_more_#{@more_params.hash}", image_tag("searching.gif", :class => "search_searching") - end - - link_to_remote t('geocoder.results.more_results'), - :update => "search_more_#{@more_params.hash}", - :before => startSpinner, - :url => @more_params - %>

+
+ <%= link_to t('geocoder.results.more_results'), url_for(@more_params), :class => "button load_more" %> + <%= image_tag "searching.gif", :class => "loader", :style => "display: none;" %>
<% end %> <% end %>