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"%>