다이얼로그 관련 소스정리

main
이범준 3 months ago
parent dada3444b3
commit 895a662982

@ -1012,13 +1012,19 @@ $(document).ready(function(){
url: wctx.url("/user/user02/010/main.do") + "?openerPageName=${pageName}" url: wctx.url("/user/user02/010/main.do") + "?openerPageName=${pageName}"
, data: params || {} , data: params || {}
, success: resp => { , success: resp => {
let dialogName = "userDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({ dialog.open({
id: "userDialog--${pageName}" id: dialogId
, title: "사용자 검색" , title: "사용자 검색"
, content: resp , content: resp
, size: "lg" , size: "lg"
, init: () => { , init: () => {
setDialogZindex(); setDialogZindex();
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
} }
}); });
} }

@ -564,12 +564,20 @@ $(document).ready(function(){
url: wctx.url("/user/user02/010/main.do") + "?openerPageName=${pageName}" url: wctx.url("/user/user02/010/main.do") + "?openerPageName=${pageName}"
, data: params || {} , data: params || {}
, success: resp => { , success: resp => {
let dialogName = "userDialog";
let dialogId = dialogName+"-"+uuid();
dialog.open({ dialog.open({
id: "userDialog--${pageName}" id: dialogId
, title: "사용자 검색" , title: "사용자 검색"
, content: resp , content: resp
, size: "lg" , size: "lg"
, init: () => { setDialogZindex(); } , init: () => {
setDialogZindex();
$("#"+dialogId).attr("name", dialogName);
$("#"+dialogId).attr("data-ref-doctx","${pageName}");
}
}); });
} }
}); });

@ -255,7 +255,7 @@
${callbackFuncName}(userId, $P.control.dataset.getValue("USER_NM")); ${callbackFuncName}(userId, $P.control.dataset.getValue("USER_NM"));
} }
dialog.close($P.control.prefixed("Dialog--${openerPageName}")); dialog.close($("#frmSearch--${pageName}").parents(".modal")[0].id);
} }
/************************************************************************** /**************************************************************************

Loading…
Cancel
Save