* adjust for show modal.
This commit is contained in:
@@ -122,12 +122,14 @@ $(function()
|
||||
})
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
<?php $showedModal = false;?>
|
||||
<?php if(!empty($config->global->showAnnual) and empty($config->global->annualShowed)):?>
|
||||
<?php $this->app->loadLang('misc');?>
|
||||
var myModalTrigger = new $.zui.ModalTrigger({title:'<?php echo $lang->misc->showAnnual;?>', custom: function(){return <?php echo json_encode(sprintf($lang->misc->annualDesc, $this->createLink('report', 'annualData')));?>}});
|
||||
var result = myModalTrigger.show();
|
||||
$('#showAnnual').click(function(){myModalTrigger.close()});
|
||||
<?php $this->loadModel('setting')->setItem("{$this->app->user->account}.common.global.annualShowed", 1);?>
|
||||
<?php $showedModal = true;?>
|
||||
<?php endif;?>
|
||||
</script>
|
||||
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
|
||||
|
||||
@@ -4,13 +4,14 @@ $this->app->loadLang('im');
|
||||
$account = str_replace('.', '_', $this->app->user->account);
|
||||
$xxInstalled = $account . 'installed';
|
||||
?>
|
||||
<?php if(isset($config->xxserver->installed) and $config->xuanxuan->turnon and !isset($config->xxclient->$xxInstalled) and $config->global->flow == 'full' ):?>
|
||||
<?php if(!$showedModal and isset($config->xxserver->installed) and $config->xuanxuan->turnon and !isset($config->xxclient->$xxInstalled) and $config->global->flow == 'full' ):?>
|
||||
var myModalTrigger = new $.zui.ModalTrigger({custom: '<?php echo $lang->im->xxClientConfirm;?>', title: '<?php echo $lang->im->zentaoClient;?>'});
|
||||
var result = myModalTrigger.show();
|
||||
<?php $this->loadModel('setting')->setItem("system.common.xxclient.{$account}installed", 1);?>
|
||||
<?php $showedModal = true;?>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if(!isset($config->xxserver->noticed) and $this->app->user->admin and $config->global->flow == 'full' and $config->$module->block->initVersion >= '2'):?>
|
||||
<?php if(!$showedModal and !isset($config->xxserver->noticed) and $this->app->user->admin and $config->global->flow == 'full' and $config->$module->block->initVersion >= '2'):?>
|
||||
var myModalTrigger = new $.zui.ModalTrigger({custom: '<?php echo $lang->im->xxServerConfirm;?>', title: '<?php echo $lang->im->zentaoClient;?>'});
|
||||
var result = myModalTrigger.show();
|
||||
<?php $this->loadModel('setting')->setItem("system.common.xxserver.noticed", 1);?>
|
||||
|
||||
Reference in New Issue
Block a user