|
|
|
@ -41,12 +41,17 @@ $("#addpackagebtn").click(function () {
|
|
|
|
|
setStorage("citystate", $("input[name=citystate]").val().trim());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (getStorage("zipcode") != $("input[name=zipcode]").val().trim()) {
|
|
|
|
|
setStorage("zipcode", $("input[name=zipcode]").val().trim());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var address = ($("input[name=number]").val() + " " + $("input[name=street]").val()).toUpperCase();
|
|
|
|
|
$("#no-history").addClass("display-none");
|
|
|
|
|
addPackageByAddress(
|
|
|
|
|
$("input[name=number]").val().toUpperCase(),
|
|
|
|
|
$("input[name=street]").val().toUpperCase(),
|
|
|
|
|
$("input[name=citystate]").val().toUpperCase(),
|
|
|
|
|
$("input[name=zipcode]").val().toUpperCase(),
|
|
|
|
|
$("input[name=itemtype]:checked").val(),
|
|
|
|
|
function (ids) {
|
|
|
|
|
var packageObj = getPackage(ids.packageID);
|
|
|
|
@ -82,6 +87,9 @@ $(".view-main").on("click", "#historylist .history-list-item", function () {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Restore user's last entered city/state combo
|
|
|
|
|
if (getStorage("citystate") != null) {
|
|
|
|
|
if (inStorage("citystate")) {
|
|
|
|
|
$("input[name=citystate]").val(getStorage("citystate"));
|
|
|
|
|
}
|
|
|
|
|
if (inStorage("zipcode")) {
|
|
|
|
|
$("input[name=zipcode]").val(getStorage("zipcode"));
|
|
|
|
|
}
|