]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Make "add note" cope with base layer changes
[rails.git] / app / assets / javascripts / index / notes.js.erb
index 4d796a3de8cc7b36ee5b5a6c0034d9dfa75bbb41..f212c85b7562b2c6f5d9f9297d7cd1f97502bf10 100644 (file)
@@ -219,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;