From ebda4e7a4e85870979f652a2bdb595f79c5464f9 Mon Sep 17 00:00:00 2001 From: Hao Sun Date: Mon, 13 Sep 2021 14:12:25 +0800 Subject: [PATCH] * change features modal type to "iframe". --- module/index/js/index.js | 6 ------ module/my/js/index.js | 17 +++++------------ 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/module/index/js/index.js b/module/index/js/index.js index dfde92a2da..251de06f99 100644 --- a/module/index/js/index.js +++ b/module/index/js/index.js @@ -852,9 +852,3 @@ function getLatestVersion() $('#globalSearchInput').click(); $('#upgradeContent').toggle(); } - -/** Show features dialog */ -function showFeaturesDialog() -{ - new $.zui.ModalTrigger({url: $.createLink('misc', 'features'), type: 'ajax', width: 900, showHeader: false, backdrop: 'static'}).show(); -} diff --git a/module/my/js/index.js b/module/my/js/index.js index 22b1e76c8d..36b676a8eb 100644 --- a/module/my/js/index.js +++ b/module/my/js/index.js @@ -1,6 +1,10 @@ $(function() { - if(showFeatures) showFeaturesDialog(); + if(showFeatures) + { + /** Show features dialog */ + new $.zui.ModalTrigger({url: $.createLink('misc', 'features'), type: 'iframe', width: 900, showHeader: false, backdrop: 'static'}).show(); + } /* Set the heights of every block to keep them same height. */ projectBoxHeight = $('#projectbox').height(); @@ -37,14 +41,3 @@ $(function() $(this).find('.fixedHead').css('top',$(this).scrollTop()); }); }); - -/** - * Show features dialog. - * - * @access public - * @return void - */ -function showFeaturesDialog() -{ - $.zui.modalTrigger.show({url: $.createLink('misc', 'features'), type: 'ajax', width: 900, showHeader: false}) -}