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);