Merge branch 'dev' into dev_bbs-feat

main
sjh88 2 years ago
commit 45c6747d2c

@ -181,3 +181,30 @@ escapeXml를 true로 설정함으로써 가장 간단하게 XSS(링크)를 방
따라서 XSS 방어하기 위해서는 <c:out>을 사용하는 게 좋다.
# 팝업호출시 blockUI 적용
```js
// 팝업호출하는 화면단 : ~Form.jsp
// tiles biz jsp단에서 var popup 선언되어 있음
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
// 팝업창
// event에 아래 코드 추가
// tiles biz jsp단에서 var unblockUI = () => $.unblockUI() 선언되어 있음
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
```

@ -97,7 +97,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,clickRegBtn: function(props){
@ -301,4 +308,4 @@
</script>
</script>

@ -68,7 +68,14 @@
const fnClickProgramBtn = (props) => {
const rowData = props.grid.getRow(props.rowKey);
CmmPopup.open(
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(
'<c:url value="/fims/biz/ec/ec0100Popup.do"/>'
, {
progrmFileNm: rowData.progrmFileNm
@ -174,7 +181,14 @@
* 데이터 등록
======================== */
const addProgram = () => {
CmmPopup.open(
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(
'<c:url value="/fims/biz/ec/ec0100Popup.do"/>'
, null
, {

@ -69,7 +69,7 @@
<a href="#LINK" class="btn blue" id="btnModify" onClick="mngProgramMgtPopup.addProgram()">등록</a>
</c:otherwise>
</c:choose>
<a href="#" class="btn lightgray" id="btnClose" onclick="window.close()">닫기</a>
<a href="#" class="btn lightgray" id="btnClose" >닫기</a>
</span>
</div>
<!-- //등록버튼 -->

@ -41,7 +41,7 @@
<div class="popup_btn">
<span class="flr p_flr">
<a href="#" class="btn blue" id="btnRegist">파일 처리</a>
<a href="#" class="btn lightgray" id="btnClose" onclick="fnBiz.close()">닫기</a>
<a href="#" id="btnClose" class="btn lightgray">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
@ -166,17 +166,22 @@
GRID.resetData([]);
}
}
,close: () => {
window.opener.unblockUI();
window.opener.popup = null;
window.close();
}
}
/**************************************************************************
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#folder').on('change', function(e) {
//document.getElementById("folder").select();
//document.selection.clear();
@ -277,11 +282,5 @@
**************************************************************************/
$(document).ready(function(){
initGrid();
$(window).on("beforeunload", function () {
window.opener.unblockUI();
window.opener.popup = null;
return "";
});
});
</script>

@ -50,8 +50,8 @@
**************************************************************************/
let GRID = null;
var callbackSearch = () => fnBiz.search();
var unblockUI = () => $.unblockUI();
var popup = null;
//var unblockUI = () => $.unblockUI();
//var popup = null;
/* *******************************
* Biz function
@ -81,8 +81,8 @@
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup.self.close();
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);

@ -5,7 +5,7 @@
<c:set var="files" value="${attchFiles}"/>
<c:set var="bizName" value="외부연계 데이타"/>
<div class="popup" style="min-width: 100px;" onbeforeunload="fnBiz.close()">
<div class="popup" style="min-width: 100px;">
<div class="popup_inner" style="max-width: 900px;">
<p class="pop_title">
<c:out value="${bizName}"/>(<c:out value="${extrlRegltCntcDTO.extrlRegltCntcId}"/>) 상세
@ -167,7 +167,7 @@
<div class="popup_btn">
<span class="flr p_flr">
<a href="#" class="btn lightgray" onclick="fnBiz.close()">닫기</a>
<a href="#" id="btnClose" class="btn lightgray">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
@ -265,12 +265,12 @@
,savePhoto: () => {
dragableSave();
}
,close: () => {
window.opener.gridInfo = null;
window.opener.unblockUI();
window.opener.popup = null;
window.close();
}
// ,close: () => {
// window.opener.gridInfo = null;
// window.opener.unblockUI();
// window.opener.popup = null;
// window.close();
// }
};
/**************************************************************************
@ -281,6 +281,16 @@
fnBiz.viewImg()
});
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#prev').on('click', () => {
window.opener.onClickCrackdownNavigationBtn('prev');
});

@ -104,7 +104,7 @@
<div class="popup_btn">
<span class="flr p_flr">
<a href="#" class="btn blue" id="btnRegist">저장</a>
<a href="#" class="btn lightgray" onclick="window.close()">닫기</a>
<a href="#" id="btnClose" class="btn lightgray">닫기</a>
</span>
</div>
</div>
@ -172,30 +172,27 @@
,data: $.param(data)
})
}
,close: () => {
window.opener.gridInfo = null;
window.opener.unblockUI();
window.close();
}
};
/**************************************************************************
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
});
/**************************************************************************
* initialize
**************************************************************************/
$(document).ready(function () {
$(window).on("beforeunload", function () {
window.opener.unblockUI();
//$.unblockUI();
return "";
});
});

@ -64,10 +64,8 @@
/**************************************************************************
* Global Variable
**************************************************************************/
var popup;
let GRID = null;
var callbackSearch = () => fnBiz.search();
var unblockUI = () => $.unblockUI();
/* *******************************
* Biz function
@ -127,7 +125,10 @@
const rowData = props.grid.getRow(props.rowKey);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
//,onOverlayClick: $.unblockUI
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
fnBiz.pagePopup('answer', {interfaceSeqN: rowData.interfaceSeqN});

@ -242,7 +242,7 @@
<div class="popup_btn">
<span class="flr p_flr">
<a href="#" class="btn lightgray" onclick="fnBiz.close()">닫기</a>
<a href="#" id="btnClose" class="btn lightgray">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
@ -363,12 +363,6 @@
,savePhoto: () => {
dragableSave();
}
,close: () => {
window.opener.gridInfo = null;
window.opener.unblockUI();
window.opener.popup = null;
window.close();
}
};
/**************************************************************************
@ -379,6 +373,16 @@
fnBiz.viewImg()
});
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#prev').on('click', () => {
window.opener.onClickCtznStmtNavigationBtn('prev');
});
@ -391,12 +395,6 @@
* initialize
**************************************************************************/
$(document).ready(function () {
$(window).on("beforeunload", function () {
window.opener.unblockUI();
window.opener.popup = null;
return "";
});
<c:forEach var="dtlDTO" items="${ctznStmtDtlDTOs}" varStatus="status">
orgDtlDatas.push($('form[name=frmStmtDtl${dtlDTO.ctznSttemntDetailSn}]').serialize())
</c:forEach>

@ -103,9 +103,14 @@
fnBiz.add();
});
$('#btnClose').on('click', () => {
window.opener.unblockUI();
window.close();
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
});
@ -198,11 +203,5 @@
**************************************************************************/
$(document).ready(function(){
initGrid();
$(window).on("beforeunload", function () {
window.opener.unblockUI();
//$.unblockUI();
return "";
});
});
</script>

@ -266,10 +266,14 @@
fnBiz.viewImg()
});
$('#btnClose').on('click', () => {
window.opener.unblockUI();
window.opener.popup = null;
window.close();
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
});
@ -277,12 +281,6 @@
* initialize
**************************************************************************/
$(document).ready(function () {
$(window).on("beforeunload", function () {
window.opener.unblockUI();
//$.unblockUI();
return "";
});
// orgData = $('form').serialize();
fnBiz.downloadImg();
});

@ -16,6 +16,6 @@
<a href="#" class="btn blue" id="btnRegist">등록</a>
</c:otherwise>
</c:choose>
<a href="#" class="btn lightgray" onclick="window.close()">닫기</a>
<a href="#" id='btnClose' class="btn lightgray">닫기</a>
</span>
</div>

@ -16,6 +16,6 @@
<a href="#" class="btn blue" id="btnRegist">등록</a>
</c:otherwise>
</c:choose>
<a href="#" class="btn lightgray" onclick="window.close()">닫기</a>
<a href="#" id="btnClose" class="btn lightgray">닫기</a>
</span>
</div>

@ -77,7 +77,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,fnClickAuthRegBtn : function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -121,6 +121,16 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => fnBiz.add());
$('#btnModify').on('click', () => fnBiz.modify());

@ -72,7 +72,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){

@ -115,6 +115,15 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => fnBiz.add());
$('#btnModify').on('click', () => fnBiz.modify());

@ -102,7 +102,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
}

@ -253,9 +253,14 @@
* event
**************************************************************************/
$(() => {
$('#btnClose').on('click', () => {
window.opener.callbackSearch();
window.close();
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => fnBiz.save());

@ -42,7 +42,7 @@
<div class="popup_btn">
<span class="flr p_flr">
<a href="#" class="btn blue" id="btnRegist" title="저장">저장</a>
<a href="#" class="btn lightgray" onclick="window.close()">닫기</a>
<a href="#" id="btnClose" class="btn lightgray">닫기</a>
</span>
</div>
@ -99,6 +99,16 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnSearch').on('click', () => fnBiz.search());
$('#btnRegist').on('click', () => {

@ -74,7 +74,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){

@ -141,6 +141,16 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => {
fnBiz.add();
});

@ -76,7 +76,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -188,6 +188,16 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => {
fnBiz.add();
});

@ -44,7 +44,7 @@
<div id="grid"></div>
<div class="popup_btn">
<span class="flr p_flr">
<a href="#" class="btn lightgray" onclick="window.close()">닫기</a>
<a href="#" id="btnCloas" class="btn lightgray">닫기</a>
</span>
</div>
</div>
@ -65,6 +65,7 @@
}
,onClickGrid: (ev) => {
const data = ev.grid.getRow(ev.rowKey);
window.opener?.unblockUI();
window.opener.callbackSearch(data);
window.close();
}
@ -74,6 +75,15 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnSearch').on('click', () => fnBiz.search());
});

@ -76,7 +76,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -75,7 +75,7 @@
</c:otherwise>
</c:choose>
<a href="#" class="btn blue" id="btnPreview">미리보기</a>
<a href="#" class="btn lightgray" onclick="window.close()">닫기</a>
<a href="#" id="btnClose" class="btn lightgray">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
@ -150,6 +150,16 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => {
fnBiz.add();
});

@ -62,16 +62,7 @@
<!-- 데이터 출력 -->
<div id="grid"></div>
<!-- <div class="popup_btn"> -->
<!-- <span class="flr"> -->
<!-- <a href="#" class="btn lightgray" id="btnClose">닫기</a> -->
<!-- </span> -->
<!-- </div> -->
<!-- //popup_btn -->
</form>

@ -74,7 +74,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -134,6 +134,16 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => {
fnBiz.add();
});

@ -76,7 +76,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -118,6 +118,16 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => {
fnBiz.add();
});

@ -90,7 +90,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -187,6 +187,16 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => {
fnBiz.add();
});

@ -85,7 +85,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -134,6 +134,16 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => {
fnBiz.add();
});

@ -26,7 +26,7 @@
<div class="popup_btn">
<span class="flr p_flr">
<a href="#" class="btn blue" id="btnSave">엑셀파일 업로드</a>
<a href="#" class="btn lightgray" id="btnClose" onclick="window.close(); return false;">닫기</a>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //등록버튼 -->
@ -36,6 +36,16 @@
<script type="text/javaScript">
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnSave').on('click', () => {
const uploadFile = $("#file")[0];
console.log("uploadFile: ", uploadFile.files)

@ -86,7 +86,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -135,6 +135,15 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => {
fnBiz.add();
});

@ -66,7 +66,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -88,7 +88,7 @@
<div class="popup_btn">
<span class="flr p_flr">
<a href="#" class="btn blue" id="btnRegist" title="저장" onclick="fInsertMenuCreat()">저장</a>
<a href="#" class="btn lightgray" onclick="window.close()">닫기</a>
<a href="#" id="btnClose" class="btn lightgray">닫기</a>
</span>
</div>
</div>
@ -103,6 +103,16 @@
if (v.checked) orgData.push(v.value);
});
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('input[name="checkField"]:checkbox').on({
click: function(){
const slt = 'div'+this.value;

@ -82,7 +82,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickMenuNmGrid: function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -178,6 +178,16 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => {
fnBiz.add();
});
@ -190,7 +200,7 @@
fnBiz.remove();
});
$('#btnSchPgmPopup').on('click', () => {
CmmPopup.open(
popup = CmmPopup.open(
'<c:url value="/framework/biz/mng/menu/mngProgramSchPopup.do"/>'
, {}
, {width: 900, height: 870}

@ -74,7 +74,14 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){

@ -112,6 +112,15 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnRegist').on('click', () => {
fnBiz.add();
});

@ -43,7 +43,7 @@
<div id="grid"></div>
<div class="popup_btn">
<span class="flr p_flr">
<a href="#" class="btn lightgray" onclick="window.close()">닫기</a>
<a href="#" id="btnClose" class="btn lightgray">닫기</a>
</span>
</div>
</div>
@ -64,6 +64,7 @@
}
,onClickGrid: (ev) => {
const data = ev.grid.getRow(ev.rowKey);
window.opener?.unblockUI();
window.opener.callbackSearch(data);
window.close();
}
@ -73,6 +74,15 @@
* event
**************************************************************************/
$(() => {
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#btnSearch').on('click', () => fnBiz.search());
});

@ -85,7 +85,21 @@
default:
break;
}
CmmPopup.open(url, params, popOption, popTitle);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(url, params, popOption, popTitle);
}
,onClickGrid: function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -256,7 +256,15 @@
* event
**************************************************************************/
$(() => {
$("#btnClose").on('click', () => window.close());
$(window).on("unload", function (e) {
window.opener?.unblockUI();
return null;
});
$("#btnClose").on('click', () => {
window.opener?.unblockUI();
window.close()
});
$('#addrSearch').on('click', () => CmmPopup.zipPopup());

@ -100,8 +100,6 @@
}).ajaxStop(function(){
$.unblockUI();
});
//초기화
XitIncludeBase.init();
});

@ -137,6 +137,13 @@
}
const target = '정보수정';
CmmPopup.open(popUrl, params, popOption, target);
$.blockUI({message: '' ,css: {width: '100%', height: '100%'}
//모달창 외부 클릭시 닫기
,onOverlayClick: () => {
$.unblockUI();
popup?.self?.close();
}
});
popup = CmmPopup.open(popUrl, params, popOption, target);
}
</script>

@ -8,7 +8,7 @@
<c:if test="${!empty pageTitle}">
<title>${pageTitle}</title>
</c:if>
<%@include file="/WEB-INF/jsp/framework/layouts/tiles/biz/cmmn/BizIncludeBase.jsp" %>
<%-- <%@include file="/WEB-INF/jsp/framework/layouts/tiles/biz/cmmn/BizIncludeBase.jsp" %>--%>
<style>
#wrap {
padding: 5px 20px 5px 20px;
@ -27,7 +27,8 @@
<t:insertAttribute name="content"/>
</div>
<!-- //wrap -->
</body>
</html>

@ -6,6 +6,11 @@
<html>
<head>
<%@include file="/WEB-INF/jsp/framework/layouts/tiles/biz/cmmn/BizIncludeBase.jsp" %>
<script type="text/javaScript">
var popup = null;
var unblockUI = () => $.unblockUI();
</script>
</head>
<!-- <body> -->

Loading…
Cancel
Save