Also apply iframe solution to dispDocumentDeclare

This commit is contained in:
Kijin Sung 2025-05-14 02:37:17 +09:00
parent d1d278719c
commit bd3e642d37
3 changed files with 8 additions and 1 deletions

View file

@ -205,6 +205,7 @@
var menu_id = params.menu_id;
var menus = ret_obj.menus;
var html = "";
var isMobile = navigator.userAgent.match(/mobile/i);
if(this.loaded_popup_menus[menu_id]) {
html = this.loaded_popup_menus[menu_id];
@ -234,7 +235,11 @@
var matches = [];
/* if(icon) styleText = " style=\"background-image:url('"+icon+"')\" "; */
if (target === 'popup') {
click_str = 'onclick="popopen(this.href, \''+target+'\'); return false;"';
if (isMobile) {
click_str = 'onclick="openFullScreenIframe(this.href, \''+target+'\'); return false;"';
} else {
click_str = 'onclick="popopen(this.href, \''+target+'\'); return false;"';
}
classText += 'popup ';
} else if (target === 'javascript') {
click_str = 'onclick="'+url+'; return false; "';

View file

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

View file

@ -12,6 +12,7 @@
<input type="hidden" name="xe_validator_id" value="modules/document/tpl/1" />
<div class="x_modal-header">
<h1>{$lang->improper_document_declare} <!--@if($type == 'cancel')-->{$lang->cmd_cancel}<!--@end--></h1>
<a class="close_window" href="javascript:window.close()">&times;</a>
</div>
<div class="x_modal-body x_form-horizontal" style="max-height:none">
<blockquote>