From a5f3abcbe90250e37a0850fbdf5dedbf36f19819 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 1 May 2013 09:26:05 +0100 Subject: [PATCH] Make "add note" cope with base layer changes --- app/assets/javascripts/index/notes.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5