* Adjust my work and contribute menu.
This commit is contained in:
@@ -912,8 +912,8 @@ class bug extends control
|
||||
$this->loadModel('my')->setMenu();
|
||||
$moduleIndex = array_search('bug', $this->lang->noMenuModule);
|
||||
if($moduleIndex !== false) unset($this->lang->noMenuModule[$moduleIndex]);
|
||||
$this->lang->task->menu = $this->lang->my->workMenu;
|
||||
$this->lang->my->menu->myWork['subModule'] = 'bug';
|
||||
$this->lang->task->menu = $this->lang->my->menu->work;
|
||||
$this->lang->my->menu->work['subModule'] = 'bug';
|
||||
|
||||
$this->view->position[] = html::a($this->createLink('my', 'bug'), $this->lang->my->bug);
|
||||
$this->view->title = "BUG" . $this->lang->bug->batchEdit;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Set duplicate field.
|
||||
*
|
||||
* @param string $resolution
|
||||
*
|
||||
* @param string $resolution
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -68,3 +68,8 @@ $(document).on('change', 'select', function()
|
||||
$(this).trigger("change");
|
||||
}
|
||||
})
|
||||
|
||||
$(function()
|
||||
{
|
||||
$('#subNavbar li[data-id="bug"]').addClass('active');
|
||||
});
|
||||
|
||||
@@ -451,7 +451,7 @@ class doc extends control
|
||||
/* Set my menu. */
|
||||
if($this->app->openApp == 'my')
|
||||
{
|
||||
$this->lang->doc->menu = $this->lang->my->contributeMenu;
|
||||
$this->lang->doc->menu = $this->lang->my->menu->contribute;
|
||||
$this->lang->modulePageNav = '';
|
||||
$this->lang->TRActions = '';
|
||||
$this->lang->my->menu->contribute['subModule'] = 'doc';
|
||||
@@ -932,7 +932,7 @@ class doc extends control
|
||||
$productID = $type == 'product' ? $objectID : 0;
|
||||
$executionID = $type == 'execution' ? $objectID : 0;
|
||||
$this->doc->setMenu($type, 0, 0, $productID, $executionID, $crumb);
|
||||
|
||||
|
||||
}
|
||||
elseif($from == 'execution')
|
||||
{
|
||||
|
||||
@@ -478,8 +478,8 @@ class task extends control
|
||||
$this->loadModel('my')->setMenu();
|
||||
$moduleIndex = array_search('task', $this->lang->noMenuModule);
|
||||
if($moduleIndex !== false) unset($this->lang->noMenuModule[$moduleIndex]);
|
||||
$this->lang->task->menu = $this->lang->my->workMenu;
|
||||
$this->lang->my->menu->myWork['subModule'] = 'task';
|
||||
$this->lang->task->menu = $this->lang->my->menu->work;
|
||||
$this->lang->my->menu->work['subModule'] = 'task';
|
||||
|
||||
$this->view->position[] = html::a($this->createLink('my', 'task'), $this->lang->my->task);
|
||||
$this->view->title = $this->lang->task->batchEdit;
|
||||
|
||||
@@ -810,8 +810,8 @@ class testcase extends control
|
||||
|
||||
/* The cases of my. */
|
||||
$this->loadModel('my')->setMenu();
|
||||
$this->lang->testcase->menu = $this->lang->my->workMenu;
|
||||
$this->lang->my->menu->myWork['subModule'] = 'testcase';
|
||||
$this->lang->testcase->menu = $this->lang->my->menu->work;
|
||||
$this->lang->my->menu->work['subModule'] = 'testcase';
|
||||
|
||||
$this->view->position[] = html::a($this->server->http_referer, $this->lang->my->testCase);
|
||||
$this->view->title = $this->lang->testcase->batchEdit;
|
||||
|
||||
@@ -1094,8 +1094,8 @@ class testtask extends control
|
||||
/* The case of my. */
|
||||
else
|
||||
{
|
||||
$this->lang->testtask->menu = $this->lang->my->workMenu;
|
||||
$this->lang->my->menu->myWork['subModule'] = 'testtask';
|
||||
$this->lang->testtask->menu = $this->lang->my->menu->work;
|
||||
$this->lang->my->menu->work['subModule'] = 'testtask';
|
||||
|
||||
$this->view->title = $this->lang->testtask->batchRun;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user