From 26b29b7ebcfedd5facb694bd08c529e41285b8cc Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 24 Oct 2023 16:51:35 +0800 Subject: [PATCH] * zin: auto append onlybody=yes to class modal in zin page. --- www/js/zui3/zin.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/js/zui3/zin.js b/www/js/zui3/zin.js index c3ec5a6ebe..cecb7dd9fd 100644 --- a/www/js/zui3/zin.js +++ b/www/js/zui3/zin.js @@ -960,7 +960,13 @@ if(!modalTrigger) { delete options.toggle; - if(url) options.url = url; + if(url) options.url = url; else url = options.url; + if(url && !url.includes('onlybody')) + { + if(url.includes('?')) url += '&onlybody=yes'; + else url += '?onlybody=yes'; + options.url = url; + } options.type = 'iframe'; modalTrigger = new window.parent.$.zui.ModalTrigger(options); $link.data('zui.modaltrigger', modalTrigger);