X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7ec003dd01ff25765b46788aa0ec90cedd94a2de..db5c58ed09ed7f767a340ef889a29b6282505b82:/app/assets/javascripts/index/notes.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index eecf91ef0..c4f758482 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -174,6 +174,8 @@ $(document).ready(function () { $("#createnoteanchor").click(function (e) { e.preventDefault(); + if ($(e.target).hasClass("disabled")) return; + map.addLayer(noteLayer); var marker = L.marker(map.getCenter(), {