diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp index 0334c0a..bc9cf62 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/product-popup.jsp @@ -258,7 +258,10 @@ // 현재 선택 자료 변경 이벤트 $P.control.onCurrentChange = item => { - if (!item) return; + if (!item) { + $P.detailControl.setData([]); + return; + } let key = item.data.keyCnt; $("#tbody--${pageName}").setCurrentRow(key); @@ -316,7 +319,7 @@ .replace(/{onclick}/gi, "pageObject['${pageName}'].control.setCurrent('" + dataItem.getValue("keyCnt") + "');"); // .replace(/{ondblclick}/gi, "pageObject['${pageName}'].fnSave()"); - let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").content.outerHTML] + let trs = empty ? [document.getElementById("${infoPrefix}NotFound--${pageName}").innerHTML] : ${infoPrefix}List.inStrings(foundTr.outerHTML, replacer); let noMore = (totalSize == ${infoPrefix}List.length);