소스 정리

main
이범준 3 months ago
parent 81b408f532
commit 9d59375b2a

@ -290,9 +290,6 @@ $(document).ready(function(){
} }
}); });
/**************************************************************************
* Dataset.on
**************************************************************************/
ctrl.dataset.onCurrentChange = (dataItem) => { ctrl.dataset.onCurrentChange = (dataItem) => {
if(!dataItem){ if(!dataItem){
return; return;

@ -184,9 +184,9 @@ $(document).ready(function(){
$P.refListMap = {}; $P.refListMap = {};
/************************************************************************** /**************************************************************************
* datasetControl * DatasetControl, Dataset, FormFields
**************************************************************************/ **************************************************************************/
$P.alt = new DatasetControl({ var alt = $P.alt = new DatasetControl({
dataGetter : obj => Array.isArray(obj) ? obj : [], appendData:false, dataGetter : obj => Array.isArray(obj) ? obj : [], appendData:false,
keymapper : info => info ? info.DATA_ID : "", keymapper : info => info ? info.DATA_ID : "",
urls : { }, urls : { },
@ -207,12 +207,9 @@ $(document).ready(function(){
} }
}); });
/************************************************************************** alt.dataset.onDatasetChange = (obj, option) => {
* Dataset.on
**************************************************************************/
$P.alt.dataset.onDatasetChange = (obj, option) => {
var DS = $P.alt.dataset; var DS = alt.dataset;
var empty = DS.empty; var empty = DS.empty;
var notFound = [""]; var notFound = [""];
var found = $P.findn("detailGridTbodyTemplate").innerHTML; var found = $P.findn("detailGridTbodyTemplate").innerHTML;
@ -585,7 +582,7 @@ $(document).ready(function(){
$P.dblClickMasterGrid = (obj) => { $P.dblClickMasterGrid = (obj) => {
var dataKey = obj.dataset.key; var dataKey = obj.dataset.key;
$P.alt.dataset.setData(refListMap[dataKey]); alt.dataset.setData(refListMap[dataKey]);
var offset = $P.$findn("masterArea").offset(); var offset = $P.$findn("masterArea").offset();
$P.$findn("statWrapper").animate({scrollTop : offset.top}, 400); $P.$findn("statWrapper").animate({scrollTop : offset.top}, 400);

Loading…
Cancel
Save