X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7b37f4cb62fca5fec3d3d41eacf4601595519c4a..5a6c0eb49e5e24d9048472c75e2f82f567729050:/app/views/geocoder/results.html.erb diff --git a/app/views/geocoder/results.html.erb b/app/views/geocoder/results.html.erb index b4bbdc267..d990b7f0e 100644 --- a/app/views/geocoder/results.html.erb +++ b/app/views/geocoder/results.html.erb @@ -1,17 +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 %> -
-

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

+
+ <%= 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 %>