오류 수정

main
이범준 9 months ago
parent 2601001236
commit 9f1a08f890

@ -215,8 +215,7 @@
$("#sinmungoTbody--${pageName}").html(""); $("#sinmungoTbody--${pageName}").html("");
var originalDataList = resp.originalDataList; var list = resp.list;
var backupDataList = resp.backupDataList;
if(list != null && list.length > 0){ if(list != null && list.length > 0){
sinmungoDataset.setData(list); sinmungoDataset.setData(list);
@ -226,13 +225,15 @@
var empty = sinmungoDataset.empty; var empty = sinmungoDataset.empty;
var notFound = [document.getElementById("sggNotFound--${pageName}").innerHTML]; var notFound = [document.getElementById("sinmungoNotFound--${pageName}").innerHTML];
var found = document.getElementById("sggRow--${pageName}").innerHTML; var found = document.getElementById("sinmungoRow--${pageName}").innerHTML;
var replacer = (str, dataItem) => str.replace(/{onclick}/gi, ""); var replacer = (str, dataItem) => str
.replace(/{onclick}/gi, "fnClickSinmungoList('" + dataItem.getValue("SINMUNGO_INNER_KEY") + "');");
var trs = empty ? notFound : sinmungoDataset.inStrings(found, replacer); var trs = empty ? notFound : sinmungoDataset.inStrings(found, replacer);
$("#sinmungoTbody--${pageName}").html(trs.join()); $("#sinmungoTbody--${pageName}").html(trs.join());
$("#sinmungoTbody--${pageName}").find("tr").find("td").eq(0).click();
} }
}); });
}); });

Loading…
Cancel
Save