addHalo(newNoteMarker.getLatLng());
newNoteMarker.on("dragend", function () {
- content.find("textarea").focus();
+ content.find("textarea").trigger("focus");
});
}
function moveNewNoteMarkerToClick(e) {
if (newNoteMarker) newNoteMarker.setLatLng(e.latlng);
if (halo) halo.setLatLng(e.latlng);
- content.find("textarea").focus();
+ content.find("textarea").trigger("focus");
}
function updateControls() {
content.find("textarea")
.on("input", updateControls)
- .focus();
+ .trigger("focus");
content.find("input[type=submit]").on("click", function (e) {
const location = newNoteMarker.getLatLng().wrap();