Fix javascript eror redirecting to new notes
authorTom Hughes <tom@compton.nu>
Sun, 1 Dec 2013 22:41:30 +0000 (22:41 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 1 Dec 2013 22:41:30 +0000 (22:41 +0000)
app/assets/javascripts/index/new_note.js.erb

index 6f734a35b141905896d0e8029c6030d5c30456ae..9990da7836c366830edb216b614a2a5e5ebf6634 100644 (file)
@@ -61,7 +61,7 @@ OSM.NewNote = function(map) {
       newNote = null;
       noteLayer.removeLayer(marker);
       addNoteButton.removeClass("active");
-      OSM.route('/note/' + feature.properties.id);
+      OSM.router.route('/note/' + feature.properties.id);
     }
   }