From e596c21baca270d1397acf26b890ece9db82b80c Mon Sep 17 00:00:00 2001 From: leebj Date: Fri, 2 Aug 2024 08:48:08 +0900 Subject: [PATCH] =?UTF-8?q?datasetControl=EA=B3=BC=20=EB=AC=B4=EA=B4=80?= =?UTF-8?q?=ED=95=9C=20=EA=B7=B8=EB=A6=AC=EB=93=9C=20row=20=EC=84=A0?= =?UTF-8?q?=ED=83=9D=20=ED=95=A8=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/resources/js/fims/cmmn/fims-cmmnUtil.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js b/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js index 48b35337..0935c5a1 100644 --- a/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js +++ b/src/main/webapp/resources/js/fims/cmmn/fims-cmmnUtil.js @@ -1,3 +1,16 @@ +/************************************************************************** +* 그리드 row 선택 +**************************************************************************/ +function setCurrentRow(tdElement){ + let tr = tdElement.parentElement(); + let tbody = tr.parentElement(); + + for (let sibling of tdElement.parentNode.children) { + sibling.classList.remove('current-row'); + } + tr.classList.add('current-row'); +} + /************************************************************************** * 클립보드 복사 **************************************************************************/