]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/geocoder/results.html.erb
Make the multi-get calls throw 400 errors on invalid input
[rails.git] / app / views / geocoder / results.html.erb
index 7fd21775ec81264df6393a9f4f614824770e3f8a..f98f2abc9e3c490f7643c749c8bd1a9138a4a853 100644 (file)
@@ -7,20 +7,11 @@
   <% end %>
 </ul>
   <% if @more_params %>
   <% end %>
 </ul>
   <% if @more_params %>
-    <div id="search_more_<%= @more_params.hash %>">
+    <div class="search_more">
       <div class="inner12 search_results_entry">
       <div class="inner12 search_results_entry">
-        <%= link_to t('geocoder.results.more_results'), "#", :class => "button" %>
+        <%= link_to t('geocoder.results.more_results'), url_for(@more_params), :class => "button" %>
       </div>
       </div>
-      <%= image_tag "searching.gif", :class => "search_searching" %>
+      <%= image_tag "searching.gif", :class => ["search_searching", "hidden"] %>
     </div>
     </div>
-    <script type="text/javascript">
-      $("#search_more_<%= @more_params.hash %> .search_searching").hide();
-
-      $("#search_more_<%= @more_params.hash %> a").click(function () {
-        $("#search_more_<%= @more_params.hash %> .search_results_entry").hide();
-        $("#search_more_<%= @more_params.hash %> .search_searching").show();
-        $("#search_more_<%= @more_params.hash %>").load("<%= raw url_for(@more_params) %>");
-      });
-    </script>
   <% end %>
 <% end %>
   <% end %>
 <% end %>