diff --git a/www/assets/js/notes.js b/www/assets/js/notes.js index fccbcc7..85b0921 100644 --- a/www/assets/js/notes.js +++ b/www/assets/js/notes.js @@ -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", diff --git a/www/pages/myroute.html b/www/pages/myroute.html index 236f114..bf19ba9 100644 --- a/www/pages/myroute.html +++ b/www/pages/myroute.html @@ -56,6 +56,12 @@ {{#if notes}}
{{newlinestobr notes}}
{{/if}} + {{#if forwards}} +{{newlinestobr forwards}}
+ {{/if}} + {{#if utfs}} +{{newlinestobr utfs}}
+ {{/if}}