Only use the actual name that matched as the link, which helps to highlight it.
This commit is contained in:
parent
eb6114617c
commit
bb43a46bab
3 changed files with 24 additions and 7 deletions
|
@ -5,7 +5,7 @@
|
|||
<p class="search_results_entry">No results found</p>
|
||||
<% else %>
|
||||
<% source[:results].each do |result| %>
|
||||
<p class="search_results_entry"><%= link_to_function result[:description], "setPosition(#{result[:lat]}, #{result[:lon]}, #{result[:zoom]})" %></p>
|
||||
<p class="search_results_entry"><%= result_to_html(result) %></p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue