]> git.openstreetmap.org Git - rails.git/commitdiff
Make "add note" cope with base layer changes
authorTom Hughes <tom@compton.nu>
Wed, 1 May 2013 08:26:05 +0000 (09:26 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 1 May 2013 08:26:05 +0000 (09:26 +0100)
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;
     e.preventDefault();
 
     if ($(e.target).hasClass("disabled")) return;