From 03ce94a0c42f78afbc69bf69934c577fe650c207 Mon Sep 17 00:00:00 2001 From: "Rinjae(gf63)" Date: Tue, 15 Sep 2026 17:52:39 +0900 Subject: [PATCH] =?UTF-8?q?-=20=EC=B4=88=EB=8C=80/=EC=B4=88=EB=8C=80=20?= =?UTF-8?q?=EC=B7=A8=EC=86=8C=20=ED=8C=9D=EC=97=85=20=EC=95=8C=EB=A6=BC=20?= =?UTF-8?q?=EB=AC=B8=EA=B5=AC=20=EC=88=98=EC=A0=95:=20=EB=A9=94=EC=8B=9C?= =?UTF-8?q?=EC=A7=80=20=EB=B0=9C=EC=86=A1=20=EB=82=B4=EC=9A=A9=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20-=20=EC=95=8C=EB=A6=BC=20=EC=88=98=EC=8B=A0=20?= =?UTF-8?q?=EB=8F=99=EC=9D=98=EC=84=9C=20=EB=AF=B8=EC=9A=B4=EC=98=81=20?= =?UTF-8?q?=EC=8B=9C=20=EC=B2=B4=ED=81=AC=EB=B0=95=EC=8A=A4=20=EB=B9=88?= =?UTF-8?q?=EA=B0=92=20=EC=B2=98=EB=A6=AC=20=EB=A1=9C=EC=A7=81=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/js/popup/custom-popups.js | 8 ++++++-- .../views/fragment/popup/cancelInvitationPopup.html | 5 ++--- .../templates/views/fragment/popup/userInvitePopup.html | 5 ++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/resources/static/js/popup/custom-popups.js b/src/main/resources/static/js/popup/custom-popups.js index 303d125..e0b9890 100644 --- a/src/main/resources/static/js/popup/custom-popups.js +++ b/src/main/resources/static/js/popup/custom-popups.js @@ -500,7 +500,9 @@ const customPopups = { // 확인 버튼 이벤트 (기존 이벤트 제거 후 재등록) $('#userInvitePopupConfirmButton').off('click').on('click', function () { const mobile = $('#userInviteMobileInput').val().trim(); - const notifyConsent = $('#userInviteNotifyConsent').is(':checked'); + // 알림 수신 동의서를 운영하지 않으면 체크박스 자체가 없다. 이때는 동의 절차만 생략되고 메시지는 발송한다. + const $inviteConsent = $('#userInviteNotifyConsent'); + const notifyConsent = $inviteConsent.length === 0 || $inviteConsent.is(':checked'); // 휴대폰 번호 유효성 검사 if (!mobile) { @@ -628,7 +630,9 @@ const customPopups = { // 확인 버튼 이벤트 (기존 이벤트 제거 후 재등록) $('#cancelInvitationPopupConfirmButton').off('click').on('click', function () { - const notifyConsent = $('#cancelInvitationNotifyConsent').is(':checked'); + // 알림 수신 동의서를 운영하지 않으면 체크박스 자체가 없다. 이때는 동의 절차만 생략되고 메시지는 발송한다. + const $cancelConsent = $('#cancelInvitationNotifyConsent'); + const notifyConsent = $cancelConsent.length === 0 || $cancelConsent.is(':checked'); if (typeof onConfirm === 'function') { onConfirm(notifyConsent); } diff --git a/src/main/resources/templates/views/fragment/popup/cancelInvitationPopup.html b/src/main/resources/templates/views/fragment/popup/cancelInvitationPopup.html index b07b4be..d36ee0c 100644 --- a/src/main/resources/templates/views/fragment/popup/cancelInvitationPopup.html +++ b/src/main/resources/templates/views/fragment/popup/cancelInvitationPopup.html @@ -38,11 +38,10 @@ - + diff --git a/src/main/resources/templates/views/fragment/popup/userInvitePopup.html b/src/main/resources/templates/views/fragment/popup/userInvitePopup.html index 3cd5387..d60a4f0 100644 --- a/src/main/resources/templates/views/fragment/popup/userInvitePopup.html +++ b/src/main/resources/templates/views/fragment/popup/userInvitePopup.html @@ -48,11 +48,10 @@ - +