From 534f65876673b0e25bb44ccb3c167656e750b7ec Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 16 Aug 2020 17:35:04 -0600 Subject: [PATCH] "Deliver All": don't re-mark as delivered if already set --- www/assets/js/map.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/assets/js/map.js b/www/assets/js/map.js index 781e6da..cae2247 100644 --- a/www/assets/js/map.js +++ b/www/assets/js/map.js @@ -87,6 +87,9 @@ $("#app").on("click", "#package-info-sheet #package-info-deliver-all", function if (packages[i].id == coordid) { package = packages[i]; for (var j = 0; j < package.items.length; j++) { + if (package.items[j].delivered) { + continue; + } markDelivered(package.items[j].id, true); } break;