fix: 개인결제관리 > 개인결제 등록/수정 - 결제수단 체크박스

This commit is contained in:
이대환
2026-05-28 17:21:34 +09:00
parent 7805d58c94
commit 6ea1568800
2 changed files with 28 additions and 14 deletions

View File

@@ -408,13 +408,7 @@
/* 관리자 주문 > 에누리 > 결제수단 선택 이벤트 */ /* 관리자 주문 > 에누리 > 결제수단 선택 이벤트 */
$('.setleMnCds').on('click', function() { $('.setleMnCds').on('click', function() {
const td = $(this).closest('td'); fn_chk_steleChkbox(this);
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);
}
}); });
/* 관리자 주문 > 에누리 > 유효기간 체인지 이벤트 */ /* 관리자 주문 > 에누리 > 유효기간 체인지 이벤트 */
@@ -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);
}
}
</script> </script>
<body> <body>
<%@ include file="/WEB-INF/views/comm/mngr/Header.jsp"%> <%@ include file="/WEB-INF/views/comm/mngr/Header.jsp"%>

View File

@@ -124,13 +124,7 @@
/* 관리자 주문 > 에누리 > 결제수단 선택 이벤트 */ /* 관리자 주문 > 에누리 > 결제수단 선택 이벤트 */
$('.setleMnCds').on('click', function() { $('.setleMnCds').on('click', function() {
const td = $(this).closest('td'); fn_chk_steleChkbox(this);
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);
}
}); });
/* 관리자 주문 > 에누리 > 유효기간 체인지 이벤트 */ /* 관리자 주문 > 에누리 > 유효기간 체인지 이벤트 */
@@ -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);
}
}
</script> </script>
<body> <body>
<%@ include file="/WEB-INF/views/comm/mngr/Header.jsp"%> <%@ include file="/WEB-INF/views/comm/mngr/Header.jsp"%>