Remove geolink class from add note button while adding notes
This was lost in the recent UI work but is important to stop changes in map location causing the button to be reenabled.
This commit is contained in:
parent
c93308dd5c
commit
393651e8bd
1 changed files with 3 additions and 3 deletions
|
@ -191,7 +191,7 @@ function initializeNotes(map) {
|
|||
notes[feature.properties.id] = updateMarker(marker, feature);
|
||||
newNote = null;
|
||||
|
||||
addNoteButton.removeClass("disabled");
|
||||
addNoteButton.removeClass("disabled").addClass("geolink");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -226,7 +226,7 @@ function initializeNotes(map) {
|
|||
|
||||
if (addNoteButton.hasClass("disabled")) return;
|
||||
|
||||
addNoteButton.addClass("disabled");
|
||||
addNoteButton.removeClass("geolink").addClass("disabled");
|
||||
|
||||
map.addLayer(noteLayer);
|
||||
|
||||
|
@ -263,7 +263,7 @@ function initializeNotes(map) {
|
|||
newNote.addTo(noteLayer).bindPopup(popupContent[0], popupOptions()).openPopup();
|
||||
|
||||
newNote.on("remove", function (e) {
|
||||
addNoteButton.removeClass("disabled");
|
||||
addNoteButton.removeClass("disabled").addClass("geolink");
|
||||
}).on("dragstart", function (e) {
|
||||
$(newNote).stopTime("removenote");
|
||||
}).on("dragend", function (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue