From a57a3e1f3e515119962b4f4f92a30e208502a6a9 Mon Sep 17 00:00:00 2001 From: kangsunlee Date: Wed, 25 Jun 2025 14:41:40 +0900 Subject: [PATCH] =?UTF-8?q?[BO]=20=EB=A7=88=EC=9D=B4=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=82=B4=EC=A0=95=EB=B3=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/info/user/password.html | 2 +- front/src/main/resources/templates/info/user/user.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/front/src/main/resources/templates/info/user/password.html b/front/src/main/resources/templates/info/user/password.html index b3530d82..e2662a72 100644 --- a/front/src/main/resources/templates/info/user/password.html +++ b/front/src/main/resources/templates/info/user/password.html @@ -23,7 +23,7 @@
+ inputmode="numeric" pattern="[0-9]*" maxlength="4">
diff --git a/front/src/main/resources/templates/info/user/user.html b/front/src/main/resources/templates/info/user/user.html index bc66c2e8..f4a151cb 100644 --- a/front/src/main/resources/templates/info/user/user.html +++ b/front/src/main/resources/templates/info/user/user.html @@ -107,7 +107,7 @@
- +
@@ -333,13 +333,13 @@ // selectboxInstance1.setValue($('input[name=regionMainCode]').val()); }, confirmPopup() { - const currentName = document.querySelector('input[name="ownerName"]').value; + const currentName = document.querySelector('input[name="ownerName"]').value.trim(); - // 사용자가 이름을 변경했을 경우에만 개인정보 변경 동의서 모달 띄우기 - if (currentName !== ENV.initialOwnerName) { + if (currentName === '') { // 이름 비어있을 경우 유효성검사 실시 + formControl.updateUserInfo(); + } else if (currentName !== ENV.initialOwnerName) { // 이름이 변경됐을 경우 개인정보동의 모달창 띄우기 ENV.module.confirmPopup.open(); } else { - // 이름 그대로면 바로 저장 formControl.updateUserInfo(); } },