Skip to content

Commit

Permalink
Merge pull request daldal-Mango#40 from dddooo9/main
Browse files Browse the repository at this point in the history
인증버튼 클릭시 수정/삭제 제한에 대한 경고창 출력
  • Loading branch information
hyeoneedyou authored Aug 28, 2021
2 parents 5596a0e + 4fbe33e commit fca2cca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Miracle30/static/js/goal_detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ participateBtn.addEventListener("click", (e) => {
alert(`그룹에 참여하기 위해서는 ${fee.textContent}만큼의 별이 필요합니다.`);
e.preventDefault();
}
} else{ // 참여 취소
} else if (participateBtn.textContent.includes("취소")) { // 참여 취소
if(alertCashBack()) e.preventDefault();
}

Expand Down
11 changes: 11 additions & 0 deletions Miracle30/static/js/group_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(`인증은 한번 등록하면 수정/삭제할 수 없습니다.`);
}

0 comments on commit fca2cca

Please sign in to comment.