소스 정리

main
이범준 9 months ago
parent de877f33cd
commit 90363e7846

@ -346,9 +346,10 @@ $(document).ready(function(){
} }
} }
$P.crdnControl.onSelectionChange = (selected) => { $P.crdnControl.onSelectionChange = (selectedArr) => {
var crdnDS = $P.crdnControl.dataset; var crdnDS = $P.crdnControl.dataset;
var keys = selected.map(e => crdnDS.getKey(e)); var keys = selectedArr.map(item => crdnDS.getKey(item));
$("#crdnTbody--${pageName} input[type='checkbox']").each(function() { $("#crdnTbody--${pageName} input[type='checkbox']").each(function() {
var checkbox = $(this); var checkbox = $(this);

@ -330,10 +330,10 @@ $(document).ready(function(){
} }
} }
$P.crdnControl.onSelectionChange = (selected) => { $P.crdnControl.onSelectionChange = (selectedArr) => {
var crdnList = $P.crdnControl.dataset; var crdnDS = $P.crdnControl.dataset;
var keys = selected.map(e => crdnList.getKey(e)); var keys = selectedArr.map(item => crdnDS.getKey(item));
$("#table-responsive--${pageName}").find("input[name='gridCheckbox']").each(function() { $("#table-responsive--${pageName}").find("input[name='gridCheckbox']").each(function() {
var checkbox = $(this); var checkbox = $(this);

@ -120,10 +120,10 @@ $(document).ready(function() {
}; };
// 선택(체크) 변경 이벤트 // 선택(체크) 변경 이벤트
$P.integrationSearchControl.updataset.onSelectionChange = (selected) => { $P.integrationSearchControl.updataset.onSelectionChange = (selectedArr) => {
var ds = $P.integrationSearchControl.updataset; var DS = $P.integrationSearchControl.updataset;
var keys = selected.map(e => ds.getKey(e)); var keys = selectedArr.map(item => DS.getKey(item));
$("#upTbody--${pageName}").find("input[type='checkbox']").each(function() { $("#upTbody--${pageName}").find("input[type='checkbox']").each(function() {
var checkbox = $(this); var checkbox = $(this);
@ -132,10 +132,10 @@ $(document).ready(function() {
}; };
$P.integrationSearchControl.downdataset.onSelectionChange = (selected) => { $P.integrationSearchControl.downdataset.onSelectionChange = (selectedArr) => {
var ds = $P.integrationSearchControl.downdataset; var DS = $P.integrationSearchControl.downdataset;
var keys = selected.map(e => ds.getKey(e)); var keys = selectedArr.map(item => DS.getKey(item));
$("#downTbody--${pageName}").find("input[type='checkbox']").each(function() { $("#downTbody--${pageName}").find("input[type='checkbox']").each(function() {
var checkbox = $(this); var checkbox = $(this);

Loading…
Cancel
Save