From d1d278719c2f267dd932a241afb4d7ac3259188d Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 14 May 2025 02:32:23 +0900 Subject: [PATCH] Also apply iframe solution to dispTempSavedList --- common/js/common.js | 11 ++++++++--- common/tpl/popup_layout.html | 3 +-- modules/document/tpl/saved_list_popup.html | 3 +++ modules/editor/tpl/popup.html | 2 -- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/common/js/common.js b/common/js/common.js index 307fdb088..7c9c5f2e5 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -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(); diff --git a/common/tpl/popup_layout.html b/common/tpl/popup_layout.html index c6be2e6b4..7de055796 100644 --- a/common/tpl/popup_layout.html +++ b/common/tpl/popup_layout.html @@ -18,8 +18,7 @@ }; diff --git a/modules/document/tpl/saved_list_popup.html b/modules/document/tpl/saved_list_popup.html index a894d7e30..59cbe43a5 100644 --- a/modules/document/tpl/saved_list_popup.html +++ b/modules/document/tpl/saved_list_popup.html @@ -1,6 +1,8 @@ {@Context::addMetaTag('viewport', 'width=device-width', FALSE);} +

{$lang->cmd_view_saved_document}

+ ×
@@ -41,6 +43,7 @@ {$lang->last_page} ›
+