diff --git a/common/js/common.js b/common/js/common.js index 7c9c5f2e5..1558437b9 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -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; "'; diff --git a/common/tpl/popup_layout.html b/common/tpl/popup_layout.html index 7de055796..27804868d 100644 --- a/common/tpl/popup_layout.html +++ b/common/tpl/popup_layout.html @@ -19,6 +19,7 @@ diff --git a/modules/document/tpl/declare_document.html b/modules/document/tpl/declare_document.html index 77cd215e4..dfb3fa468 100644 --- a/modules/document/tpl/declare_document.html +++ b/modules/document/tpl/declare_document.html @@ -12,6 +12,7 @@

{$lang->improper_document_declare} {$lang->cmd_cancel}

+ ×