From b9fda95ee7bf36c864dcfdc1e75154ebb5e001f2 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 3 Jan 2020 17:29:45 +0800 Subject: [PATCH] * adjust for show modal. --- module/block/view/dashboard.html.php | 2 ++ .../module/block/ext/view/dashboard.xuanxuan.html.hook.php | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/module/block/view/dashboard.html.php b/module/block/view/dashboard.html.php index 24fb2806ab..4dffa8ede6 100644 --- a/module/block/view/dashboard.html.php +++ b/module/block/view/dashboard.html.php @@ -122,12 +122,14 @@ $(function() }) + global->showAnnual) and empty($config->global->annualShowed)):?> app->loadLang('misc');?> var myModalTrigger = new $.zui.ModalTrigger({title:'misc->showAnnual;?>', custom: function(){return misc->annualDesc, $this->createLink('report', 'annualData')));?>}}); var result = myModalTrigger.show(); $('#showAnnual').click(function(){myModalTrigger.close()}); loadModel('setting')->setItem("{$this->app->user->account}.common.global.annualShowed", 1);?> + getExtViewFile(__FILE__)){include $extView; return helper::cd();}?> diff --git a/xuanxuan/module/block/ext/view/dashboard.xuanxuan.html.hook.php b/xuanxuan/module/block/ext/view/dashboard.xuanxuan.html.hook.php index a26d853403..2afc68886a 100755 --- a/xuanxuan/module/block/ext/view/dashboard.xuanxuan.html.hook.php +++ b/xuanxuan/module/block/ext/view/dashboard.xuanxuan.html.hook.php @@ -4,13 +4,14 @@ $this->app->loadLang('im'); $account = str_replace('.', '_', $this->app->user->account); $xxInstalled = $account . 'installed'; ?> -xxserver->installed) and $config->xuanxuan->turnon and !isset($config->xxclient->$xxInstalled) and $config->global->flow == 'full' ):?> +xxserver->installed) and $config->xuanxuan->turnon and !isset($config->xxclient->$xxInstalled) and $config->global->flow == 'full' ):?> var myModalTrigger = new $.zui.ModalTrigger({custom: 'im->xxClientConfirm;?>', title: 'im->zentaoClient;?>'}); var result = myModalTrigger.show(); loadModel('setting')->setItem("system.common.xxclient.{$account}installed", 1);?> + -xxserver->noticed) and $this->app->user->admin and $config->global->flow == 'full' and $config->$module->block->initVersion >= '2'):?> +xxserver->noticed) and $this->app->user->admin and $config->global->flow == 'full' and $config->$module->block->initVersion >= '2'):?> var myModalTrigger = new $.zui.ModalTrigger({custom: 'im->xxServerConfirm;?>', title: 'im->zentaoClient;?>'}); var result = myModalTrigger.show(); loadModel('setting')->setItem("system.common.xxserver.noticed", 1);?>