From 7be7a8851d8c87be515d648a605427eb566cd317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EB=8C=80=ED=99=98?= Date: Thu, 28 May 2026 17:21:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B0=9C=EC=9D=B8=EA=B2=B0=EC=A0=9C?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20>=20=EA=B0=9C=EC=9D=B8=EA=B2=B0=EC=A0=9C?= =?UTF-8?q?=20=EB=93=B1=EB=A1=9D/=EC=88=98=EC=A0=95=20-=20=EA=B2=B0?= =?UTF-8?q?=EC=A0=9C=EC=88=98=EB=8B=A8=20=EC=B2=B4=ED=81=AC=EB=B0=95?= =?UTF-8?q?=EC=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 6ea1568800244af673b815f048363e2033a8ff9c) --- .../indvdlSetle/IndvdlSetleRegistFormC.jsp | 21 ++++++++++++------- .../indvdlSetle/IndvdlSetleUpdateFormU.jsp | 21 ++++++++++++------- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/mngr/ordr/indvdlSetle/IndvdlSetleRegistFormC.jsp b/src/main/webapp/WEB-INF/views/mngr/ordr/indvdlSetle/IndvdlSetleRegistFormC.jsp index 727fb672..8202972f 100644 --- a/src/main/webapp/WEB-INF/views/mngr/ordr/indvdlSetle/IndvdlSetleRegistFormC.jsp +++ b/src/main/webapp/WEB-INF/views/mngr/ordr/indvdlSetle/IndvdlSetleRegistFormC.jsp @@ -408,13 +408,7 @@ /* 관리자 주문 > 에누리 > 결제수단 선택 이벤트 */ $('.setleMnCds').on('click', function() { - const td = $(this).closest('td'); - let checkbox = $(table).find('input[name="setleMnCds"]').length; - let checkedbox = $(table).find('input[name="setleMnCds"]:checked').length; - - if (checkbox !== checkedbox) { - $(td).find('#setleChkAll').prop('checked', false); - } + fn_chk_steleChkbox(this); }); /* 관리자 주문 > 에누리 > 유효기간 체인지 이벤트 */ @@ -1670,6 +1664,19 @@ } } + + /* 개인결제 결제수단 체크박스 처리 */ + const fn_chk_steleChkbox = function(target) { + const td = $(target).closest('td'); + let checkbox = $(table).find('input[name="setleMnCds"]').length; + let checkedbox = $(table).find('input[name="setleMnCds"]:checked').length; + + if (checkbox !== checkedbox) { + $(td).find('#setleChkAll').prop('checked', false); + } else { + $(td).find('#setleChkAll').prop('checked', true); + } + } <%@ include file="/WEB-INF/views/comm/mngr/Header.jsp"%> diff --git a/src/main/webapp/WEB-INF/views/mngr/ordr/indvdlSetle/IndvdlSetleUpdateFormU.jsp b/src/main/webapp/WEB-INF/views/mngr/ordr/indvdlSetle/IndvdlSetleUpdateFormU.jsp index 790fcec9..966997f9 100644 --- a/src/main/webapp/WEB-INF/views/mngr/ordr/indvdlSetle/IndvdlSetleUpdateFormU.jsp +++ b/src/main/webapp/WEB-INF/views/mngr/ordr/indvdlSetle/IndvdlSetleUpdateFormU.jsp @@ -124,13 +124,7 @@ /* 관리자 주문 > 에누리 > 결제수단 선택 이벤트 */ $('.setleMnCds').on('click', function() { - const td = $(this).closest('td'); - let checkbox = $(table).find('input[name="setleMnCds"]').length; - let checkedbox = $(table).find('input[name="setleMnCds"]:checked').length; - - if (checkbox !== checkedbox) { - $(td).find('#setleChkAll').prop('checked', false); - } + fn_chk_steleChkbox(this); }); /* 관리자 주문 > 에누리 > 유효기간 체인지 이벤트 */ @@ -779,6 +773,19 @@ } } + + /* 개인결제 결제수단 체크박스 처리 */ + const fn_chk_steleChkbox = function(target) { + const td = $(target).closest('td'); + let checkbox = $(table).find('input[name="setleMnCds"]').length; + let checkedbox = $(table).find('input[name="setleMnCds"]:checked').length; + + if (checkbox !== checkedbox) { + $(td).find('#setleChkAll').prop('checked', false); + } else { + $(td).find('#setleChkAll').prop('checked', true); + } + } <%@ include file="/WEB-INF/views/comm/mngr/Header.jsp"%>