X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/979822f697ec100b4b96eff05ce3b39b462e7a7d..a5f3abcbe90250e37a0850fbdf5dedbf36f19819:/app/assets/javascripts/index/notes.js.erb diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 072890775..f212c85b7 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -171,6 +171,9 @@ $(document).ready(function () { function createNote(marker, form, url) { var location = marker.getLatLng(); + marker.options.draggable = false; + marker.dragging.disable(); + $(form).find("input[type=submit]").prop("disabled", true); $.ajax({ @@ -216,7 +219,7 @@ $(document).ready(function () { }); } - $("#createnoteanchor").click(function (e) { + $(".leaflet-control-attribution").on("click", "#createnoteanchor", function (e) { e.preventDefault(); if ($(e.target).hasClass("disabled")) return;