X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aa20398cea1c212f27d9004170bdc0aee4d8f854..637799f1f57ab48254a5b6eaa0f78896ae41c456:/app/assets/javascripts/index/search.js diff --git a/app/assets/javascripts/index/search.js b/app/assets/javascripts/index/search.js index 89418e006..52920d8bb 100644 --- a/app/assets/javascripts/index/search.js +++ b/app/assets/javascripts/index/search.js @@ -17,8 +17,8 @@ OSM.Search = function(map) { var div = $(this).parents(".search_more"); - div.find(".search_results_entry").hide(); - div.find(".search_searching").show(); + $(this).hide(); + div.find(".loader").show(); $.get($(this).attr("href"), function(data) { div.replaceWith(data); @@ -27,6 +27,7 @@ OSM.Search = function(map) { function clickSearchResult(e) { e.preventDefault(); + e.stopPropagation(); var data = $(this).data(), center = L.latLng(data.lat, data.lon);