From 9d59375b2a55c435ce34072f1997780eb280a139 Mon Sep 17 00:00:00 2001 From: leebj Date: Fri, 23 Aug 2024 11:09:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/ogdp/ogdp02020-info.jsp | 3 --- .../webapp/WEB-INF/jsp/fims/stat/stat-main.jsp | 15 ++++++--------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02020-info.jsp index 63588530..9956a0e6 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/ogdp/ogdp02020-info.jsp @@ -290,9 +290,6 @@ $(document).ready(function(){ } }); - /************************************************************************** - * Dataset.on - **************************************************************************/ ctrl.dataset.onCurrentChange = (dataItem) => { if(!dataItem){ return; diff --git a/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp index 205f5c0d..aa83f1d8 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp @@ -184,9 +184,9 @@ $(document).ready(function(){ $P.refListMap = {}; /************************************************************************** - * datasetControl - **************************************************************************/ - $P.alt = new DatasetControl({ + * DatasetControl, Dataset, FormFields + **************************************************************************/ + var alt = $P.alt = new DatasetControl({ dataGetter : obj => Array.isArray(obj) ? obj : [], appendData:false, keymapper : info => info ? info.DATA_ID : "", urls : { }, @@ -207,12 +207,9 @@ $(document).ready(function(){ } }); - /************************************************************************** - * Dataset.on - **************************************************************************/ - $P.alt.dataset.onDatasetChange = (obj, option) => { + alt.dataset.onDatasetChange = (obj, option) => { - var DS = $P.alt.dataset; + var DS = alt.dataset; var empty = DS.empty; var notFound = [""]; var found = $P.findn("detailGridTbodyTemplate").innerHTML; @@ -585,7 +582,7 @@ $(document).ready(function(){ $P.dblClickMasterGrid = (obj) => { var dataKey = obj.dataset.key; - $P.alt.dataset.setData(refListMap[dataKey]); + alt.dataset.setData(refListMap[dataKey]); var offset = $P.$findn("masterArea").offset(); $P.$findn("statWrapper").animate({scrollTop : offset.top}, 400);