fix(monthly-confirm): showToast 재귀 무한루프 수정

로컬 showToast 제거 → tkfb-core.js 전역 함수 직접 사용.
수정요청/확인 완료 시 토스트 정상 표시.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-01 09:59:36 +09:00
parent 5e22ff75e7
commit 41bb755181
2 changed files with 3 additions and 10 deletions

View File

@@ -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, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;'); }
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(); });