|
|
@ -1,14 +1,24 @@
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|
* 그리드 row 선택
|
|
|
|
* 그리드 row 선택
|
|
|
|
**************************************************************************/
|
|
|
|
**************************************************************************/
|
|
|
|
function setCurrentRow(tdElement){
|
|
|
|
function setCurrentRow(et){
|
|
|
|
let tr = tdElement.parentElement;
|
|
|
|
if(et instanceof HTMLTableCellElement){
|
|
|
|
let tbody = tr.parentElement;
|
|
|
|
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');
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
/**************************************************************************
|
|
|
|