Disable the "add note" link while a note is being added

This commit is contained in:
Tom Hughes 2013-02-03 16:18:06 +00:00
parent 40b3c828e7
commit 2da3b85a7a

View file

@ -182,6 +182,8 @@ $(document).ready(function () {
if ($(e.target).hasClass("disabled")) return;
$(e.target).removeClass("geolink").addClass("disabled");
map.addLayer(noteLayer);
var mapSize = map.getSize();
@ -217,6 +219,8 @@ $(document).ready(function () {
$(".leaflet-popup-close-button").on("click.close", function (e) {
map.removeLayer(marker);
$("#createnoteanchor").removeClass("disabled").addClass("geolink");
});
marker.on("dragend", function (e) {