Disable the "add note" link while a note is being added
This commit is contained in:
parent
40b3c828e7
commit
2da3b85a7a
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue