내부 페이지 div태그 id 변경

main
이범준 1 year ago
parent e300f2f883
commit 4b953f9737

@ -74,7 +74,7 @@ function openMenu(obj, params) {
} }
let dynamicPage = document.createElement("div"); let dynamicPage = document.createElement("div");
dynamicPage.setAttribute("id","div"+dataKey); dynamicPage.setAttribute("id","innerPage-"+dataKey);
dynamicPage.setAttribute("title",menuNm); dynamicPage.setAttribute("title",menuNm);
// .attr("frameborder" , "0") // .attr("frameborder" , "0")
@ -101,7 +101,7 @@ function openMenu(obj, params) {
url:menuUrl, url:menuUrl,
data:{}, data:{},
success:resp => { success:resp => {
$("#div"+dataKey).html(resp); $("#innerPage-"+dataKey).html(resp);
} }
}); });
@ -131,7 +131,7 @@ function closeTab(menuId) {
} }
} }
document.getElementById("div"+menuId).remove(); document.getElementById("innerPage-"+menuId).remove();
delete innerPageMap[menuId]; delete innerPageMap[menuId];
$("#tab-" + activeIdx).remove(); $("#tab-" + activeIdx).remove();

Loading…
Cancel
Save