|
|
@ -292,6 +292,66 @@ const CmmPopup = {
|
|
|
|
return popup;
|
|
|
|
return popup;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, openModal: function (url, params, options, title = 'nonamePopup', method = 'post') {
|
|
|
|
|
|
|
|
if($("#popupShowBtn").length < 1){
|
|
|
|
|
|
|
|
let modalTemplate = `<button type="button"
|
|
|
|
|
|
|
|
id="popupShowBtn"
|
|
|
|
|
|
|
|
data-bs-toggle="modal"
|
|
|
|
|
|
|
|
data-bs-target="#cmmModal"
|
|
|
|
|
|
|
|
hidden>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="modal fade" id="cmmModal" tabindex="-1">
|
|
|
|
|
|
|
|
<div id="modalDialog" class="modal-dialog">
|
|
|
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="modalBody" class="modal-body">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("body").append(modalTemplate);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#modalDialog").attr("class","modal-dialog");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(options.width) {
|
|
|
|
|
|
|
|
$("#modalDialog").addClass("w-dialog-px-"+options.width);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($("#modalIframe").length > 0){
|
|
|
|
|
|
|
|
$("#modalIframe").remove();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
let modalIframe = $("<iframe></iframe>");
|
|
|
|
|
|
|
|
modalIframe.attr("id" , "modalIframe")
|
|
|
|
|
|
|
|
.attr("name" , "modalIframe")
|
|
|
|
|
|
|
|
.attr("src" , "")
|
|
|
|
|
|
|
|
.attr("title" , title)
|
|
|
|
|
|
|
|
.attr("width" , "100%")
|
|
|
|
|
|
|
|
.attr("frameborder" , "0")
|
|
|
|
|
|
|
|
.attr("scrolling" , "no")
|
|
|
|
|
|
|
|
.css("border" , "0")
|
|
|
|
|
|
|
|
.css("overflow" , "auto")
|
|
|
|
|
|
|
|
.css("overflow-x" , "no")
|
|
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
$("#modalBody").append(modalIframe);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
popup = CmmPopup.open(url, params, options, "modalIframe", method);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(popup.frameElement).on("load", function(){
|
|
|
|
|
|
|
|
let popupHeight = $(popup.frameElement.contentDocument.getElementById("wrap")).height();
|
|
|
|
|
|
|
|
$(popup.frameElement).attr("height", popupHeight);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("#popupShowBtn").trigger("click");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return popup;
|
|
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* <pre>
|
|
|
|
* <pre>
|
|
|
|
* 주소 검색 팝업 호출
|
|
|
|
* 주소 검색 팝업 호출
|
|
|
|