X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4f23e718b4a46c514843b9fd5e53fc8a9aabd694..db616d347a81a4437fab1fe5278a57425a5db3f1:/app/views/geocoder/results.html.erb diff --git a/app/views/geocoder/results.html.erb b/app/views/geocoder/results.html.erb index 694d0eadb..b4bbdc267 100644 --- a/app/views/geocoder/results.html.erb +++ b/app/views/geocoder/results.html.erb @@ -7,15 +7,11 @@ <% 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_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 + %>