|
|
|
@ -376,6 +376,7 @@ function addPackageByAddress(number, street, citystate, type, callback) {
|
|
|
|
|
}, 750);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var prelookup = function () {
|
|
|
|
|
if (type == "express") {
|
|
|
|
|
if (getStorage("deadlinealarm_minutes") == null) {
|
|
|
|
|
setStorage("deadlinealarm_minutes", 20);
|
|
|
|
@ -436,6 +437,24 @@ function addPackageByAddress(number, street, citystate, type, callback) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var deliverable = isDeliverable(number, street);
|
|
|
|
|
|
|
|
|
|
if (deliverable.ok) {
|
|
|
|
|
prelookup();
|
|
|
|
|
} else {
|
|
|
|
|
app.dialog.confirm(
|
|
|
|
|
"A route note says this address is " + deliverable.reason + ". Add item anyways?",
|
|
|
|
|
"Confirm",
|
|
|
|
|
function () {
|
|
|
|
|
prelookup();
|
|
|
|
|
},
|
|
|
|
|
function () {
|
|
|
|
|
// cancel
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function checkDeadlines() {
|
|
|
|
|
if (getStorage("deadlinealarm_minutes") == null) {
|
|
|
|
|
setStorage("deadlinealarm_minutes", 20);
|
|
|
|
|