|
|
|
@ -27,8 +27,8 @@ function openMenu(obj, params) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let iframeObj = document.getElementById(dataKey);
|
|
|
|
|
return iframeObj;
|
|
|
|
|
let innerPageObj = document.getElementById("div"+dataKey);
|
|
|
|
|
return innerPageObj;
|
|
|
|
|
}
|
|
|
|
|
if(OPEN_TAB_CNT === openMax){
|
|
|
|
|
alert(`메뉴는 최대 ${openMax -1}까지만 열 수 있습니다.`)
|
|
|
|
@ -56,31 +56,50 @@ function openMenu(obj, params) {
|
|
|
|
|
if(params != null){
|
|
|
|
|
menuUrl = menuUrl + params;
|
|
|
|
|
}
|
|
|
|
|
const $dynamicPage = $("<div></div>");
|
|
|
|
|
$dynamicPage.attr("id" , dataKey)
|
|
|
|
|
.attr("name" , menuNm)
|
|
|
|
|
.attr("title" , menuNm)
|
|
|
|
|
.attr("frameborder" , "0")
|
|
|
|
|
.attr("scrolling" , "no")
|
|
|
|
|
.attr("width" , "100%")
|
|
|
|
|
.attr("src" , menuUrl)
|
|
|
|
|
.css("border" , "0")
|
|
|
|
|
.css("height" , "100%")
|
|
|
|
|
.css("min-height" , "800px")
|
|
|
|
|
.css("overflow" , "auto")
|
|
|
|
|
.css("overflow-x" , "no")
|
|
|
|
|
|
|
|
|
|
let dynamicPage = document.createElement("div");
|
|
|
|
|
dynamicPage.setAttribute("id","div"+dataKey);
|
|
|
|
|
dynamicPage.setAttribute("name","div"+dataKey);
|
|
|
|
|
dynamicPage.setAttribute("title",menuNm);
|
|
|
|
|
|
|
|
|
|
// .attr("frameborder" , "0")
|
|
|
|
|
// .attr("scrolling" , "no")
|
|
|
|
|
// .attr("width" , "100%")
|
|
|
|
|
// .css("border" , "0")
|
|
|
|
|
// .css("height" , "100%")
|
|
|
|
|
// .css("min-height" , "800px")
|
|
|
|
|
// .css("overflow" , "auto")
|
|
|
|
|
// .css("overflow-x" , "no")
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
$("#formForInnerPage").remove();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#tab-" + dataKey)[0].appendChild(dynamicPage);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
innerPageMap[dataKey] = dynamicPage;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ajax.request({
|
|
|
|
|
type:"POST",
|
|
|
|
|
url:menuUrl,
|
|
|
|
|
data:{},
|
|
|
|
|
success:resp => {
|
|
|
|
|
console.log("ok");
|
|
|
|
|
|
|
|
|
|
var sp1 = resp.split("<!-- Content wrapper -->")[1];
|
|
|
|
|
sp1 = resp.split("<!-- Page Body -->")[1];
|
|
|
|
|
console.log(sp1);
|
|
|
|
|
|
|
|
|
|
$("#div"+dataKey).html(sp1);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#tab-" + dataKey).append($dynamicPage);
|
|
|
|
|
|
|
|
|
|
innerPageMap[dataKey] = $dynamicPage;
|
|
|
|
|
|
|
|
|
|
$("div#tabsForInnerPage ul li button.nav-link").last().trigger("click");
|
|
|
|
|
|
|
|
|
|
let dynamicPageObj = document.getElementById(dataKey);
|
|
|
|
|
return dynamicPageObj;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function closeTab(menuId) {
|
|
|
|
@ -103,7 +122,7 @@ function closeTab(menuId) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
innerPageMap[menuId].remove();
|
|
|
|
|
document.getElementById("div"+menuId).remove();
|
|
|
|
|
delete innerPageMap[menuId];
|
|
|
|
|
|
|
|
|
|
$("#tab-" + activeIdx).remove();
|
|
|
|
|