Fix click on search result
authorJohn Firebaugh <john.firebaugh@gmail.com>
Tue, 8 Oct 2013 00:15:16 +0000 (17:15 -0700)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Sun, 13 Oct 2013 21:46:09 +0000 (14:46 -0700)
app/assets/javascripts/index/search.js

index 89418e006c6c0772497d229e8f3299e192377dd4..c32503e8e26e77c96f377b261f7e1dc34f7c17cf 100644 (file)
@@ -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);