From c1eee571f6b6a7bde52bb236a336fbc69598f3fe Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sun, 6 Apr 2025 14:31:31 +0300 Subject: [PATCH] Fix typo in moveNewNoteMarkerToClick --- 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 1b409846f..4f4ea52a8 100644 --- a/app/assets/javascripts/index/new_note.js +++ b/app/assets/javascripts/index/new_note.js @@ -87,7 +87,7 @@ OSM.NewNote = function (map) { newNoteMarker = null; } - function moveNewNotMarkerToClick(e) { + function moveNewNoteMarkerToClick(e) { if (newNoteMarker) newNoteMarker.setLatLng(e.latlng); if (halo) halo.setLatLng(e.latlng); content.find("textarea").focus(); @@ -152,7 +152,7 @@ OSM.NewNote = function (map) { }); }); - map.on("click", moveNewNotMarkerToClick); + map.on("click", moveNewNoteMarkerToClick); addNoteButton.on("disabled enabled", updateControls); updateControls(); @@ -160,7 +160,7 @@ OSM.NewNote = function (map) { }; page.unload = function () { - map.off("click", moveNewNotMarkerToClick); + map.off("click", moveNewNoteMarkerToClick); addNoteButton.off("disabled enabled", updateControls); removeNewNoteMarker(); addNoteButton.removeClass("active"); -- 2.39.5