summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c93308d)
This was lost in the recent UI work but is important to stop changes
in map location causing the button to be reenabled.
notes[feature.properties.id] = updateMarker(marker, feature);
newNote = null;
notes[feature.properties.id] = updateMarker(marker, feature);
newNote = null;
- addNoteButton.removeClass("disabled");
+ addNoteButton.removeClass("disabled").addClass("geolink");
if (addNoteButton.hasClass("disabled")) return;
if (addNoteButton.hasClass("disabled")) return;
- addNoteButton.addClass("disabled");
+ addNoteButton.removeClass("geolink").addClass("disabled");
newNote.addTo(noteLayer).bindPopup(popupContent[0], popupOptions()).openPopup();
newNote.on("remove", function (e) {
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) {
}).on("dragstart", function (e) {
$(newNote).stopTime("removenote");
}).on("dragend", function (e) {