From 6c7fc435add39cbc1f9cb75e2980308c5c5cb7db Mon Sep 17 00:00:00 2001 From: kangsunlee Date: Fri, 27 Jun 2025 15:04:48 +0900 Subject: [PATCH 1/4] =?UTF-8?q?[FO]=20=EC=88=98=EC=A0=95=20:=2052.=20?= =?UTF-8?q?=ED=95=84=EC=88=98=20=EC=9E=85=EB=A0=A5=20=EC=82=AC=ED=95=AD?= =?UTF-8?q?=EC=9D=84=20=EC=9E=85=EB=A0=A5=ED=95=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EC=9D=80=20=EA=B2=BD=EC=9A=B0,=20=EC=9E=85=EB=A0=A5=ED=95=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EC=9D=80=20=EB=9E=80=EC=9D=84=20=ED=8F=AC?= =?UTF-8?q?=EC=BB=A4=EC=8A=A4=EB=90=98=EB=8F=84=EB=A1=9D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/main/resources/static/ui/commonUtil.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/front/src/main/resources/static/ui/commonUtil.js b/front/src/main/resources/static/ui/commonUtil.js index 6506dcfe..a3051b5b 100644 --- a/front/src/main/resources/static/ui/commonUtil.js +++ b/front/src/main/resources/static/ui/commonUtil.js @@ -172,7 +172,7 @@ kri.form.errorInit = function (formElement) { if (formElement.length > 0) { $(formElement).find('.component-input').removeClass('input-invalid'); $(formElement).find('.input-flex-group').removeClass('invalid'); - $(formElement).find('.select-group').removeClass('select-invalid'); + $(formElement).find('.select-group').removeClass('input-invalid'); $(formElement).find('.input-info').each(function () { $(this).remove(); }); @@ -238,11 +238,12 @@ kri.form.error = function(errorList){ } }); - if(errorList && errorList.length > 0){ - const target = $('[name="' + errorList[0].field + '"]'); - if (target.length > 0) { - target.focus(); - } + // 포커스 이동 + if ($('.input-invalid').length != 0) { + $('.input-invalid').eq(0).find('input').focus(); + } + if ($('.select-invalid').length != 0) { + $('.select-invalid').eq(0).find('button').focus(); } } From fcea687b4a3d8155526eab956e3e533602dd8e84 Mon Sep 17 00:00:00 2001 From: kangsunlee Date: Fri, 27 Jun 2025 15:40:07 +0900 Subject: [PATCH 2/4] =?UTF-8?q?[FO]=20=EC=9D=80=ED=96=89=EC=9E=90=EB=8F=99?= =?UTF-8?q?=EC=9D=B4=EC=B2=B4=20=EC=88=98=EC=A0=95=2055.=20=EC=9D=80?= =?UTF-8?q?=ED=96=89=20=EC=9E=90=EB=8F=99=EC=9D=B4=EC=B2=B4=20=EC=88=98?= =?UTF-8?q?=EC=9E=85=20=EB=82=B4=EC=97=AD=20=EB=93=B1=EB=A1=9D=EB=90=98?= =?UTF-8?q?=EC=97=88=EC=9C=BC=EB=82=98=20=EC=83=81=EB=8B=A8=200=EA=B1=B4?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=85=B8=EC=B6=9C=EB=90=A8=20(=EC=A7=80?= =?UTF-8?q?=EC=B6=9C=EB=8F=84=20=EA=B0=99=EC=9D=B4=20=ED=99=95=EC=9D=B8)?= =?UTF-8?q?=2056.=20=EC=9D=80=ED=96=89=20=EC=9E=90=EB=8F=99=EC=9D=B4?= =?UTF-8?q?=EC=B2=B4=20=EB=82=B4=EC=97=AD=20=EB=93=B1=EB=A1=9D=EB=82=B4?= =?UTF-8?q?=EC=97=AD=20=EB=85=B8=EC=B6=9C=20=EC=8B=9C=20=EB=93=B1=EB=A1=9D?= =?UTF-8?q?=ED=95=9C=20=ED=95=AD=EB=AA=A9=EB=A7=8C=20=EB=85=B8=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/main/resources/templates/info/bank/input.html | 9 +++++---- front/src/main/resources/templates/info/bank/output.html | 5 ++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/front/src/main/resources/templates/info/bank/input.html b/front/src/main/resources/templates/info/bank/input.html index 488a7b19..c4d59e8c 100644 --- a/front/src/main/resources/templates/info/bank/input.html +++ b/front/src/main/resources/templates/info/bank/input.html @@ -332,6 +332,7 @@ const next = document.getElementById('complateBtn'); const header = document.getElementById('listHeader'); const count = document.getElementById('listCount'); + const totalItems = document.getElementById('totalItems'); const total = ENV.data.bankList.length; @@ -339,6 +340,7 @@ status.style.display = total > 0 ? 'none' : ''; callPastInfoBtn.style.display = total > 0 ? 'none' : ''; count.textContent = total; + totalItems.textContent = total; btn.disabled = isChecked; @@ -474,9 +476,6 @@ ENV.data.bankList = []; document.getElementById('listBody').innerHTML = ''; formControl.updateLayout(); - - // TODO(ks): 선택 삭제 시 전체 count 미반영 중. 일단 전체 초기화에서만 count 갱신. - document.getElementById('totalItems').textContent = ENV.data.bankList.length; }, }); }, @@ -557,7 +556,9 @@ ${buttonGroupHtml}