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) { function doDocumentLoad(obj) {
// 저장된 게시글 목록 불러오기 // 저장된 게시글 목록 불러오기
objForSavedDoc = obj.form; 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; return;
} }
if(module===undefined) { if(module === undefined) {
module = 'document'; module = 'document';
} }
@ -978,7 +983,7 @@ function doDocumentSelect(document_srl, module) {
opener.location.href = url; opener.location.href = url;
break; break;
default : 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; break;
} }
window.close(); window.close();

View file

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

View file

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

View file

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