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:
@@ -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, '>').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(); });
|
||||
|
||||
Reference in New Issue
Block a user