|
|
|
@ -45,6 +45,8 @@ $("#addpackagebtn").click(function () {
|
|
|
|
|
$("#no-history").addClass("display-none");
|
|
|
|
|
addPackageByAddress(address, $("input[name=citystate]").val().toUpperCase(), $("input[name=itemtype]:checked").val(), function (ids) {
|
|
|
|
|
var packageObj = getPackage(ids.packageID);
|
|
|
|
|
// Reset item type to default
|
|
|
|
|
$("input[name=itemtype][data-default=1]").prop("checked", true);
|
|
|
|
|
$("#historylist").prepend('<li class="history-list-item item-content" data-package="' + ids.packageID + '">'
|
|
|
|
|
+ ' <div class="item-media">'
|
|
|
|
|
+ ' <i class="icon ' + getIconForType(packageObj.type) + '"></i>'
|
|
|
|
|