X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4f23e718b4a46c514843b9fd5e53fc8a9aabd694..4ea63afd24ba8ddf8af5af7e28134347f27e2009:/app/views/geocoder/results.html.erb?ds=sidebyside 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 + %>