From 4047bc4d189a1c3da8e7ad0051f7ad76cb9648b2 Mon Sep 17 00:00:00 2001 From: "Jaeeun.Cho" Date: Tue, 4 Nov 2025 10:28:59 -0500 Subject: [PATCH] Map: edit INIT button to clear caches & add drawPoint function when saving inputs --- public_html/doc/map.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/public_html/doc/map.php b/public_html/doc/map.php index ffdce2b..bc07870 100644 --- a/public_html/doc/map.php +++ b/public_html/doc/map.php @@ -308,7 +308,7 @@ - + @@ -1238,7 +1238,12 @@ function popup(){ } - api('saveInput', data, rstSaveInput); + // api('saveInput', data, rstSaveInput); + + api('saveInput', data, function(rst){ + rstSaveInput(rst); + drawPoint(); // 저장시 깃발 색깔 변경 + }); //let pickupdata = { // "route_date" : jQuery("#orderdate").val(), @@ -2253,4 +2258,12 @@ document.addEventListener('DOMContentLoaded', () => { }); }); }); + +async function forceRefresh() { + if ('caches' in window) { + const keys = await caches.keys(); + await Promise.all(keys.map(key => caches.delete(key))); + } + window.location.reload(); +} \ No newline at end of file