Add a "More results" link to Nominatim search results.
This commit is contained in:
parent
aa37cecc1d
commit
4f23e718b4
3 changed files with 30 additions and 3 deletions
|
@ -4,4 +4,18 @@
|
|||
<% @results.each do |result| %>
|
||||
<p class="search_results_entry"><%= result_to_html(result) %></p>
|
||||
<% end %>
|
||||
<% if @more_params %>
|
||||
<div id="search_more_<%= @more_params.hash %>">
|
||||
<p class="search_results_entry"><%=
|
||||
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
|
||||
%></p>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue