]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Default background for input fields to white
[rails.git] / app / assets / javascripts / index / notes.js.erb
index 928d91fe2fee5fc18d0eb637776bc4ae800a4f3b..4e45cbe05238b092f88559e930fc9d01f28bb73f 100644 (file)
@@ -34,7 +34,9 @@ function initializeNotes(map) {
   });
 
   noteLayer.on('click', function(e) {
-    OSM.router.route('/browse/note/' + e.layer.id);
+    if (e.layer.id) {
+      OSM.router.route('/note/' + e.layer.id);
+    }
   });
 
   function updateMarker(marker, feature) {