* Code for finish task #83722.
This commit is contained in:
@@ -84,7 +84,7 @@ $lang->admin->menuList->model['menuOrder']['10'] = 'scrum';
|
||||
$lang->admin->menuList->model['menuOrder']['15'] = 'waterfall';
|
||||
|
||||
$lang->admin->menuList->feature['subMenu']['my'] = array('link' => "{$lang->my->common}|custom|set|module=todo", 'exclude' => 'set,required');
|
||||
$lang->admin->menuList->feature['subMenu']['product'] = array('link' => "{$lang->productCommon}|custom|required|module=product|", 'exclude' => 'set,required');
|
||||
$lang->admin->menuList->feature['subMenu']['product'] = array('link' => "{$lang->productCommon}|custom|required|module=product|", 'exclude' => 'set,required', 'alias' => 'browsestoryconcept,product');
|
||||
$lang->admin->menuList->feature['subMenu']['execution'] = array('link' => "{$lang->execution->common}|custom|execution|");
|
||||
$lang->admin->menuList->feature['subMenu']['qa'] = array('link' => "{$lang->qa->common}|custom|required|module=bug", 'exclude' => 'set,required');
|
||||
$lang->admin->menuList->feature['subMenu']['kanban'] = array('link' => "{$lang->kanban->common}|custom|kanban|");
|
||||
@@ -95,7 +95,7 @@ $lang->admin->menuList->feature['tabMenu']['my']['todo'] = array('link' => "{$l
|
||||
$lang->admin->menuList->feature['tabMenu']['my']['block'] = array('link' => "{$lang->block->common}|custom|set|module=block&field=closed");
|
||||
if($config->vision == 'lite') $lang->admin->menuList->feature['tabMenu']['my']['task'] = array('link' => "{$lang->task->common}|custom|required|module=task", 'links' => array('custom|set|module=task&field=priList'));
|
||||
|
||||
$lang->admin->menuList->feature['tabMenu']['product']['product'] = array('link' => "{$lang->productCommon}|custom|required|module=product", 'links' => array("custom|browsestoryconcept|", 'custom|product|'));
|
||||
$lang->admin->menuList->feature['tabMenu']['product']['product'] = array('link' => "{$lang->productCommon}|custom|required|module=product", 'links' => array("custom|browsestoryconcept|", 'custom|product|'), 'alias' => 'browsestoryconcept');
|
||||
|
||||
$lang->admin->menuList->feature['menuOrder']['5'] = 'my';
|
||||
$lang->admin->menuList->feature['menuOrder']['10'] = 'product';
|
||||
|
||||
@@ -277,6 +277,7 @@ class adminModel extends model
|
||||
if($moduleName == 'custom' and strpos(',required,set,', $methodName) !== false)
|
||||
{
|
||||
if(strpos(',todo,block,', $paramName) !== false) $subMenuKey = 'my';
|
||||
if(strpos(',product,', $paramName) !== false) $subMenuKey = 'product';
|
||||
if($this->config->vision == 'lite' and $paramName == 'task') $subMenuKey = 'my';
|
||||
if(isset($subMenuKey)) $this->lang->admin->menuList->$menuKey['subMenu'][$subMenuKey]['subModule'] = $moduleName;
|
||||
}
|
||||
|
||||
@@ -9,10 +9,20 @@
|
||||
|
||||
list($tabModule, $tabMethod, $tabParams) = $link;
|
||||
|
||||
$name = $lang->custom->object[$tabMenuKey];
|
||||
$paramName = $this->app->rawParams ? reset($this->app->rawParams) : '';
|
||||
$active = ($tabMethod == $tabMenuKey and strpos(',required,set,', ",$tabMethod,",) === false) ? 'btn-active-text' : '';
|
||||
$active = ($paramName == $tabMenuKey and strpos(',required,set,', ",$tabMethod,",) !== false) ? 'btn-active-text' : $active;
|
||||
$name = $lang->custom->object[$tabMenuKey];
|
||||
$paramName = $this->app->rawParams ? reset($this->app->rawParams) : '';
|
||||
$currentMethod = $app->rawMethod;
|
||||
$active = '';
|
||||
if(strpos(',required,set,', ",$currentMethod,",) === false)
|
||||
{
|
||||
if($currentMethod == $tabMenuKey) $active = 'btn-active-text';
|
||||
if(isset($tabMenu['alias']) and strpos(",{$tabMenu['alias']},", ",$currentMethod",) !== false) $active = 'btn-active-text';
|
||||
}
|
||||
elseif($paramName == $tabMenuKey)
|
||||
{
|
||||
$active = 'btn-active-text';
|
||||
}
|
||||
|
||||
common::printLink($tabModule, $tabMethod, $tabParams, "<span class='text'>{$name}</span>", '', "class='btn btn-link {$active}' id='{$tabMenuKey}Tab'");
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user