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 @@ - +