|
|
|
@ -66,6 +66,8 @@ function saveNote(id) {
|
|
|
|
|
zipcode: "",
|
|
|
|
|
route: "",
|
|
|
|
|
notes: "",
|
|
|
|
|
forwards: "",
|
|
|
|
|
utfs: "",
|
|
|
|
|
toggles: {}
|
|
|
|
|
};
|
|
|
|
|
if (exists) {
|
|
|
|
@ -77,6 +79,8 @@ function saveNote(id) {
|
|
|
|
|
note.zipcode = $("input[name=zipcode]").val().trim();
|
|
|
|
|
note.route = $("input[name=route]").val().trim().toUpperCase();
|
|
|
|
|
note.notes = $("textarea#notes").val().trim();
|
|
|
|
|
note.forwards = $("textarea#forwards").val().trim();
|
|
|
|
|
note.utfs = $("textarea#utfs").val().trim();
|
|
|
|
|
|
|
|
|
|
if (note.number == "") {
|
|
|
|
|
app.dialog.alert("Fill in an address number.", "Error");
|
|
|
|
@ -161,6 +165,13 @@ $(".view-main").on("click", ".editnotebtn", function () {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (typeof note.forwards == "undefined") {
|
|
|
|
|
note.forwards = "";
|
|
|
|
|
}
|
|
|
|
|
if (typeof note.utfs == "undefined") {
|
|
|
|
|
note.utfs = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
router.navigate("/myroute/editnote", {
|
|
|
|
|
context: {
|
|
|
|
|
title: "Edit Note",
|
|
|
|
|