* code for task #69707.

This commit is contained in:
wangyidong
2022-09-21 08:25:56 +08:00
parent 47d0b6e08a
commit 8be950d693
3 changed files with 16 additions and 12 deletions
-3
View File
@@ -9,9 +9,6 @@ $.initSidebar();
</main><?php /* end '#wrap' in 'header.html.php'. */ ?>
<div id="noticeBox"><?php if($config->vision != 'lite') echo $this->loadModel('score')->getNotice(); ?></div>
<script>
<?php if(isset($this->config->executionNavGroup)):?>
parent.navGroup.execution = '<?php echo $this->config->executionNavGroup?>';
<?php endif;?>
<?php $this->app->loadConfig('message');?>
<?php if($config->message->browser->turnon):?>
/* Alert got messages. */
+9 -2
View File
@@ -1,4 +1,4 @@
<?php
<?php
if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}
$clientLang = $app->getClientLang();
$webRoot = $this->app->getWebRoot();
@@ -81,7 +81,7 @@ $xuanExtFile = $extensionRoot . 'xuan/common/ext/view/header.xuanxuan.html.hook.
if(file_exists($xuanExtFile)) include $xuanExtFile;
?>
</head>
<?php
<?php
$bodyClass = $this->app->getViewType() == 'xhtml' ? 'allow-self-open' : '';
if(isset($pageBodyClass)) $bodyClass = $bodyClass . ' ' . $pageBodyClass;
if($this->moduleName == 'index' && $this->methodName == 'index') $bodyClass .= ' menu-' . ($this->cookie->hideMenu ? 'hide' : 'show');
@@ -93,3 +93,10 @@ if(strpos($_SERVER['HTTP_USER_AGENT'], 'xuanxuan') !== false) $bodyClass .= ' xx
.main-actions-holder {display: none !important;}
</style>
<?php endif;?>
<?php if(isset($this->config->resetNavGroup)):?>
<script>
<?php foreach($this->config->resetNavGroup as $key => $value):?>
parent.navGroup.<?php echo $key?> = '<?php echo $value?>';
<?php endforeach;?>
</script>
<?php endif;?>
+7 -7
View File
@@ -2486,7 +2486,12 @@ class projectModel extends model
*/
public function setNoSprintMenu($objectID)
{
$this->config->executionNavGroup = 'execution';
$moduleName = $this->app->rawModule;
$methodName = $this->app->rawMethod;
$navGroup = zget($this->lang->navGroup, $moduleName);
$this->config->resetNavGroup['execution'] = 'execution';
$this->config->resetNavGroup[$moduleName] = $navGroup;
$project = $this->dao->select('*')->from(TABLE_PROJECT)->where('id')->eq($objectID)->andWhere('noSprint')->eq(1)->fetch();
if(empty($project)) return;
@@ -2514,11 +2519,6 @@ class projectModel extends model
}
if(empty($projectID) or empty($executionID)) return;
$moduleName = $this->app->rawModule;
$methodName = $this->app->rawMethod;
$navGroup = zget($this->lang->navGroup, $moduleName);
$this->app->tab = 'project';
$_COOKIE['tab'] = 'project';
@@ -2552,7 +2552,7 @@ class projectModel extends model
}
}
$this->config->executionNavGroup = 'project';
$this->config->resetNavGroup[$moduleName] = 'project';
/* If objectID is set, cannot use homeMenu. */
unset($this->lang->$navGroup->homeMenu);