From 41bb755181c8adb3db86e06438b72411149f5699 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Wed, 1 Apr 2026 09:59:36 +0900 Subject: [PATCH] =?UTF-8?q?fix(monthly-confirm):=20showToast=20=EC=9E=AC?= =?UTF-8?q?=EA=B7=80=20=EB=AC=B4=ED=95=9C=EB=A3=A8=ED=94=84=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 로컬 showToast 제거 → tkfb-core.js 전역 함수 직접 사용. 수정요청/확인 완료 시 토스트 정상 표시. Co-Authored-By: Claude Opus 4.6 (1M context) --- system1-factory/web/js/my-monthly-confirm.js | 9 +-------- .../web/pages/attendance/my-monthly-confirm.html | 4 ++-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/system1-factory/web/js/my-monthly-confirm.js b/system1-factory/web/js/my-monthly-confirm.js index 0c1c8dc..d23092d 100644 --- a/system1-factory/web/js/my-monthly-confirm.js +++ b/system1-factory/web/js/my-monthly-confirm.js @@ -394,12 +394,5 @@ async function submitReject() { // ===== Helpers ===== function fmtNum(v) { var n = parseFloat(v) || 0; return n % 1 === 0 ? n.toString() : n.toFixed(1); } function escHtml(s) { return (s || '').replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); } -function showToast(msg, type) { - if (window.showToast) { window.showToast(msg, type); return; } - var c = document.getElementById('toastContainer'); - var t = document.createElement('div'); - t.className = 'toast toast-' + (type || 'info'); - t.textContent = msg; c.appendChild(t); - setTimeout(function() { t.remove(); }, 3000); -} +// showToast — tkfb-core.js의 전역 showToast 사용 (재정의 불필요) document.addEventListener('keydown', function(e) { if (e.key === 'Escape') closeRejectModal(); }); diff --git a/system1-factory/web/pages/attendance/my-monthly-confirm.html b/system1-factory/web/pages/attendance/my-monthly-confirm.html index a65a9ab..4045470 100644 --- a/system1-factory/web/pages/attendance/my-monthly-confirm.html +++ b/system1-factory/web/pages/attendance/my-monthly-confirm.html @@ -8,7 +8,7 @@ - +
@@ -106,7 +106,7 @@ - +