From f169299b53084543698bf143e4d9f77f2322a1b5 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 31 Dec 2024 23:25:11 +0300 Subject: [PATCH] Don't pass url to createNote() --- app/assets/javascripts/index/new_note.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/index/new_note.js b/app/assets/javascripts/index/new_note.js index e5d365589..6504bae9e 100644 --- a/app/assets/javascripts/index/new_note.js +++ b/app/assets/javascripts/index/new_note.js @@ -35,14 +35,14 @@ OSM.NewNote = function (map) { OSM.router.route("/note/new"); }); - function createNote(marker, text, url) { + function createNote(marker, text) { var location = marker.getLatLng().wrap(); marker.options.draggable = false; marker.dragging.disable(); $.ajax({ - url: url, + url: "/api/0.6/notes.json", type: "POST", oauth: true, data: { @@ -154,7 +154,7 @@ OSM.NewNote = function (map) { e.preventDefault(); $(this).prop("disabled", true); - createNote(newNoteMarker, text, "/api/0.6/notes.json"); + createNote(newNoteMarker, text); }); return map.getState(); -- 2.39.5