mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Also apply iframe solution to dispDocumentDeclare
This commit is contained in:
parent
d1d278719c
commit
bd3e642d37
3 changed files with 8 additions and 1 deletions
|
|
@ -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; "';
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue