]> git.openstreetmap.org Git - rails.git/blob - app/views/geocoder/description.html.erb
Allow iD and Potlatch 2 to load assets outside the asset pipeline
[rails.git] / app / views / geocoder / description.html.erb
1 <% @sources.each do |source| %>
2   <% if source[:types] %>
3     <h4><%= raw(t("geocoder.description.title.#{source[:name]}", :types => t("geocoder.description.types.#{source[:types]}"))) %></h4>
4   <% else %>
5     <h4><%= raw(t("geocoder.description.title.#{source[:name]}")) %></h4>
6   <% end %>
7   <div class='search_results_entry inner12' id='<%= "description_#{source[:name]}_#{source[:types]}" %>'>
8     <%= image_tag "searching.gif", :class => "search_searching" %>
9   </div>
10   <script type="text/javascript">
11     $("#description_<%= source[:name] %>_<%= source[:types] %>").load("<%= raw url_for :action => "description_#{source[:name]}", :lat => params[:lat], :lon => params[:lon], :zoom => params[:zoom], :types => source[:types], :max => source[:max] %>");
12   </script>
13 <% end %>