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