이미 수정중이면 비밀번호 창 no
This commit is contained in:
parent
421ec4eaec
commit
613d9f4c16
@ -476,6 +476,7 @@ const editComment = (comment) => {
|
|||||||
targetComment.isEditTextarea = !targetComment.isEditTextarea;
|
targetComment.isEditTextarea = !targetComment.isEditTextarea;
|
||||||
lastCommentClickedButton.value = "edit";
|
lastCommentClickedButton.value = "edit";
|
||||||
} else if (isAnonymous) {
|
} else if (isAnonymous) {
|
||||||
|
if (targetComment.isEditTextarea) return;
|
||||||
toggleCommentPassword(comment, "edit");
|
toggleCommentPassword(comment, "edit");
|
||||||
} else {
|
} else {
|
||||||
alert("수정이 불가능합니다");
|
alert("수정이 불가능합니다");
|
||||||
@ -586,10 +587,10 @@ const submitCommentPassword = async (comment, password) => {
|
|||||||
if (lastCommentClickedButton.value === "edit") {
|
if (lastCommentClickedButton.value === "edit") {
|
||||||
|
|
||||||
if (targetComment) {
|
if (targetComment) {
|
||||||
currentPasswordCommentId.value = false;
|
|
||||||
//여기서 input 창 닫혀야함
|
//여기서 input 창 닫혀야함
|
||||||
targetComment.isEditTextarea = true;
|
targetComment.isEditTextarea = true;
|
||||||
passwordCommentAlert.value = "";
|
passwordCommentAlert.value = "";
|
||||||
|
currentPasswordCommentId.value = null;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
alert("수정 취소를 실패했습니다.");
|
alert("수정 취소를 실패했습니다.");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user