From 4fbe33e6166b6030a13da8afe3f229fa124b5fe7 Mon Sep 17 00:00:00 2001 From: dddooo9 Date: Sun, 29 Aug 2021 00:53:11 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B8=EC=A6=9D=EB=B2=84=ED=8A=BC=20?= =?UTF-8?q?=ED=81=B4=EB=A6=AD=EC=8B=9C=20=EC=88=98=EC=A0=95/=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=EC=A0=9C=ED=95=9C=EC=97=90=20=EB=8C=80=ED=95=9C=20?= =?UTF-8?q?=EA=B2=BD=EA=B3=A0=EC=B0=BD=20=EC=B6=9C=EB=A0=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Miracle30/static/js/goal_detail.js | 2 +- Miracle30/static/js/group_main.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Miracle30/static/js/goal_detail.js b/Miracle30/static/js/goal_detail.js index 18f2f6d..e996158 100644 --- a/Miracle30/static/js/goal_detail.js +++ b/Miracle30/static/js/goal_detail.js @@ -10,7 +10,7 @@ participateBtn.addEventListener("click", (e) => { alert(`그룹에 참여하기 위해서는 ${fee.textContent}만큼의 별이 필요합니다.`); e.preventDefault(); } - } else{ // 참여 취소 + } else if (participateBtn.textContent.includes("취소")) { // 참여 취소 if(alertCashBack()) e.preventDefault(); } diff --git a/Miracle30/static/js/group_main.js b/Miracle30/static/js/group_main.js index 368ed76..abc7409 100644 --- a/Miracle30/static/js/group_main.js +++ b/Miracle30/static/js/group_main.js @@ -32,3 +32,14 @@ modalBtn.forEach((elem, index) => { modalBody.textContent = data; }); }); + + +const certifyBtn = document.querySelector(".btn1"); + +certifyBtn.addEventListener("click", (e) => { + if(tryCertify()) e.preventDefault(); +}) + +function tryCertify(){ + return !confirm(`인증은 한번 등록하면 수정/삭제할 수 없습니다.`); +} \ No newline at end of file