]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/search.js
Stop browse routes matching user URLs
[rails.git] / app / assets / javascripts / index / search.js
index 43142959b074d6c9586c238ea0bafc953e80063b..c1c95a3e43aee61ce1698ee2dd3706d82f21e7ae 100644 (file)
@@ -29,11 +29,6 @@ OSM.Search = function(map) {
     var data = $(this).data(),
       center = L.latLng(data.lat, data.lon);
 
     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]]);
     if (data.minLon && data.minLat && data.maxLon && data.maxLat) {
       map.fitBounds([[data.minLat, data.minLon],
         [data.maxLat, data.maxLon]]);
@@ -70,6 +65,8 @@ OSM.Search = function(map) {
         }
       });
     });
         }
       });
     });
+
+    return map.getState();
   };
 
   page.unload = function() {
   };
 
   page.unload = function() {