Also apply iframe solution to dispTempSavedList

This commit is contained in:
Kijin Sung 2025-05-14 02:32:23 +09:00
parent 7157181726
commit d1d278719c
4 changed files with 12 additions and 7 deletions

View file

@ -947,7 +947,12 @@ var objForSavedDoc = null;
function doDocumentLoad(obj) {
// 저장된 게시글 목록 불러오기
objForSavedDoc = obj.form;
popopen(request_uri.setQuery('module','document').setQuery('act','dispTempSavedList'));
var popup_url = request_uri.setQuery('module','document').setQuery('act','dispTempSavedList');
if (navigator.userAgent.match(/mobile/i)) {
openFullScreenIframe(popup_url);
} else {
popopen(popup_url);
}
}
/* 저장된 게시글의 선택 */
@ -957,7 +962,7 @@ function doDocumentSelect(document_srl, module) {
return;
}
if(module===undefined) {
if(module === undefined) {
module = 'document';
}
@ -978,7 +983,7 @@ function doDocumentSelect(document_srl, module) {
opener.location.href = url;
break;
default :
opener.location.href = opener.current_url.setQuery('document_srl', document_srl).setQuery('act', 'dispBoardWrite');
opener.location.href = opener.current_url.setQuery('act', 'dispBoardWrite').setQuery('document_srl', document_srl);
break;
}
window.close();

View file

@ -18,8 +18,7 @@
};
</script>
<style>
.x.popup { width: 100vw; height: 100vh; }
.x.popup > div { width: 100vw; height: 100vh; display: flex; flex-direction: column; }
.x.popup { width: 100vw; height: 100vh; display: flex; flex-direction: column; }
.x_modal-header { flex: 0 0 auto; }
.x_modal-body { flex: 1; overflow: scroll; }
</style>

View file

@ -1,6 +1,8 @@
{@Context::addMetaTag('viewport', 'width=device-width', FALSE);}
<div>
<div class="x_modal-header">
<h1>{$lang->cmd_view_saved_document}</h1>
<a class="close_window" href="javascript:window.close()">&times;</a>
</div>
<div class="x_modal-body">
<!-- 목록 -->
@ -41,6 +43,7 @@
<a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="direction">{$lang->last_page} &rsaquo;</a>
</div>
</div>
</div>
<script type="text/javascript">
$(function() {

View file

@ -1,3 +1 @@
<div>
{$popup_content|noescape}
</div>