X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/44629832dd0207d7b0f50b93f1d00b4373dd4d49..95f1069552e9581152ad1a4ca772d36357e4006c:/app/assets/javascripts/index/new_note.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/index/new_note.js.erb b/app/assets/javascripts/index/new_note.js.erb index 29977cd57..9990da783 100644 --- a/app/assets/javascripts/index/new_note.js.erb +++ b/app/assets/javascripts/index/new_note.js.erb @@ -30,7 +30,7 @@ OSM.NewNote = function(map) { if ($(this).hasClass('disabled')) return; - OSM.route('/new_note'); + OSM.router.route('/note/new'); }); function createNote(marker, form, url) { @@ -61,7 +61,7 @@ OSM.NewNote = function(map) { newNote = null; noteLayer.removeLayer(marker); addNoteButton.removeClass("active"); - OSM.route('/browse/note/' + feature.properties.id); + OSM.router.route('/note/' + feature.properties.id); } }