* Adjust codes.
This commit is contained in:
@@ -25,9 +25,11 @@
|
||||
<nav id='modulemenu'>
|
||||
<ul></ul>
|
||||
</nav>
|
||||
<?php if($this->config->global->flow != 'onlyTest'):?>
|
||||
<nav id='featurebar'>
|
||||
<ul></ul>
|
||||
</nav>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<div class='text-left'>
|
||||
<button id='saveMenuBtn' type='button' class='btn btn-primary'><?php echo $lang->save ?></button>
|
||||
|
||||
@@ -48,7 +48,6 @@ class testcaseModel extends model
|
||||
$replace .= html::a('javascript:;', $currentLable . " <span class='caret'></span>", '', "data-toggle='dropdown'");
|
||||
$replace .="<ul class='dropdown-menu' style='max-height:240px; overflow-y:auto'>";
|
||||
|
||||
$replace .= '<li>' . html::a(helper::createLink('testcase', 'browse', "productID=$productID&branch=$branch&browseType=bySuite¶m=0"), $this->lang->testcase->featureBar['browse']['suite']) . '</li>';
|
||||
foreach ($suiteList as $suiteID => $suite)
|
||||
{
|
||||
$suiteName = $suite->name;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
$(document).ready(function()
|
||||
{
|
||||
if(flow == 'onlyTest')
|
||||
{
|
||||
$('#mainmenu .nav li').removeClass('active');
|
||||
$('#mainmenu .nav li[data-id=testsuite]').addClass('active');
|
||||
}
|
||||
})
|
||||
@@ -12,7 +12,7 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php js::set('confirmDelete', $lang->testsuite->confirmDelete)?>
|
||||
<?php js::set('onlyTest', $config->global->flow == 'onlyTest')?>
|
||||
<?php js::set('flow', $this->config->global->flow);?>
|
||||
<?php if($this->config->global->flow != 'onlyTest'):?>
|
||||
<div id="titlebar">
|
||||
<div class="heading"> <?php echo $lang->testsuite->browse?> </div>
|
||||
|
||||
Reference in New Issue
Block a user