]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/search.js
Add 'x' to close welcome box; remember preference
[rails.git] / app / assets / javascripts / index / search.js
index 6efba746e54985ca4916bdc16ffdd96d1ae9cdab..c1c95a3e43aee61ce1698ee2dd3706d82f21e7ae 100644 (file)
@@ -29,11 +29,6 @@ OSM.Search = function(map) {
     var data = $(this).data(),
       center = L.latLng(data.lat, data.lon);
 
-    if (data.type && data.id) return; // Browse link
-
-    e.preventDefault();
-    e.stopPropagation();
-
     if (data.minLon && data.minLat && data.maxLon && data.maxLat) {
       map.fitBounds([[data.minLat, data.minLon],
         [data.maxLat, data.maxLon]]);