From 397ca8684a663fda041c859d74907d4eee40a4b5 Mon Sep 17 00:00:00 2001 From: king Date: Thu, 17 Sep 2026 14:21:43 +0900 Subject: [PATCH] =?UTF-8?q?fix(project):=20=EC=84=B8=EC=85=98=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=ED=99=95=EC=9D=B8=EC=B0=BD=EC=9D=84=20=EB=B8=8C?= =?UTF-8?q?=EB=9D=BC=EC=9A=B0=EC=A0=80=20=EA=B8=B0=EB=B3=B8=20confirm=20?= =?UTF-8?q?=EB=8C=80=EC=8B=A0=20erpConfirm=EC=9C=BC=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 기본 confirm()은 제목에 도메인이 그대로 찍히고 스타일도 못 바꾼다. 앱 공용 팝업(window.erpConfirm)으로 교체. Co-Authored-By: Claude Sonnet 5 --- app/modules/project/templates/project/inbox.html | 2 +- app/modules/project/templates/project/index.html | 2 +- app/modules/project/templates/project/project.html | 2 +- app/static/project.js | 6 +++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/modules/project/templates/project/inbox.html b/app/modules/project/templates/project/inbox.html index 7f01b78..07f83b1 100644 --- a/app/modules/project/templates/project/inbox.html +++ b/app/modules/project/templates/project/inbox.html @@ -45,5 +45,5 @@ {% endif %} - + {% endblock %} diff --git a/app/modules/project/templates/project/index.html b/app/modules/project/templates/project/index.html index cfe57c2..eb4ea4d 100644 --- a/app/modules/project/templates/project/index.html +++ b/app/modules/project/templates/project/index.html @@ -424,5 +424,5 @@ window.PJ_COLORS = {{ ["#4573d2","#37a3a3","#62a420","#e8a33d","#e8384f","#aa62e3","#f06a6a","#5a6772"] | tojson }}; window.PJ_STAGE_COLORS = {{ ["#4573d2","#37a3a3","#62a420","#e8a33d","#e8384f","#aa62e3","#f06a6a","#5a6772","#e8398a","#a15c43"] | tojson }}; - + {% endblock %} diff --git a/app/modules/project/templates/project/project.html b/app/modules/project/templates/project/project.html index f39aabb..90affae 100644 --- a/app/modules/project/templates/project/project.html +++ b/app/modules/project/templates/project/project.html @@ -538,5 +538,5 @@ - + {% endblock %} diff --git a/app/static/project.js b/app/static/project.js index 6e308af..35888bd 100644 --- a/app/static/project.js +++ b/app/static/project.js @@ -2271,7 +2271,11 @@ } async function deleteStage() { if (!canDelete(s.created_by)) { alert(DELETE_DENIED); return; } - if (!confirm("'" + s.name + "' 세션을 삭제할까요? 이 세션의 업무는 '미지정'이 됩니다.")) return; + const ok = await window.erpConfirm( + "'" + s.name + "' 세션을 삭제할까요? 이 세션의 업무는 '미지정'이 됩니다.", + { okText: "삭제", cancelText: "취소" } + ); + if (!ok) return; try { await api("DELETE", "/project/api/projects/" + projectId + "/stages/" + s.id); await reloadStagesForCurrentProject();