no message

main
이범준 4 months ago
parent f0cbe65ba3
commit 87148db030

@ -240,7 +240,7 @@ $(document).ready(function(){
}
$("#crdnTbody--${pageName}").setCurrentRow(dataKey);
$P.ctrl.dataset.setCurrent(dataKey);
Apply.toDataset.current($P.ctrl.dataset, dataKey);
}

@ -1,14 +1,24 @@
/**************************************************************************
* 그리드 row 선택
**************************************************************************/
function setCurrentRow(tdElement){
let tr = tdElement.parentElement;
let tbody = tr.parentElement;
function setCurrentRow(et){
if(et instanceof HTMLTableCellElement){
let tr = et.parentElement;
let tbody = tr.parentElement;
for (let sibling of tdElement.parentNode.children) {
sibling.classList.remove('current-row');
for (let sibling of tdElement.parentNode.children) {
sibling.classList.remove('current-row');
}
tr.classList.add('current-row');
} else if(et instanceof HTMLTableRowElement){
let tr = et;
let tbody = tr.parentElement;
for (let sibling of tdElement.parentNode.children) {
sibling.classList.remove('current-row');
}
tr.classList.add('current-row');
}
tr.classList.add('current-row');
}
/**************************************************************************

Loading…
Cancel
Save