From: Tom Hughes Date: Wed, 1 May 2013 08:26:05 +0000 (+0100) Subject: Make "add note" cope with base layer changes X-Git-Tag: live~5577 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a5f3abcbe90250e37a0850fbdf5dedbf36f19819?hp=4bb1bccd9c1c8d90bf21f997a1021de74df5444d Make "add note" cope with base layer changes --- diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 4d796a3de..f212c85b7 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -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;