newNoteMarker = null;
}
- function moveNewNotMarkerToClick(e) {
+ function moveNewNoteMarkerToClick(e) {
if (newNoteMarker) newNoteMarker.setLatLng(e.latlng);
if (halo) halo.setLatLng(e.latlng);
content.find("textarea").focus();
});
});
- map.on("click", moveNewNotMarkerToClick);
+ map.on("click", moveNewNoteMarkerToClick);
addNoteButton.on("disabled enabled", updateControls);
updateControls();
};
page.unload = function () {
- map.off("click", moveNewNotMarkerToClick);
+ map.off("click", moveNewNoteMarkerToClick);
addNoteButton.off("disabled enabled", updateControls);
removeNewNoteMarker();
addNoteButton.removeClass("active");