소스 정리

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

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

@ -184,9 +184,9 @@ $(document).ready(function(){
$P.refListMap = {};
/**************************************************************************
* datasetControl
* DatasetControl, Dataset, FormFields
**************************************************************************/
$P.alt = new DatasetControl({
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);

Loading…
Cancel
Save