* Code for change arr to navTypes
This commit is contained in:
@@ -241,7 +241,7 @@ $config->dev->postParams['testcase']['create']['expect'] = 'string';
|
||||
$config->dev->postParams['testcase']['create']['mailto'] = 'string';
|
||||
$config->dev->postParams['testcase']['create']['keywords'] = 'string';
|
||||
|
||||
$config->dev->arrTypesWithMenu = array('second', 'third', 'feature');
|
||||
$config->dev->navTypes = array('second', 'third', 'feature');
|
||||
|
||||
$config->disableFeature = array();
|
||||
if(!helper::hasFeature('waterfall')) $config->disableFeature = array('design', 'stage', 'programplan', 'weekly', 'researchplan', 'researchreport', 'gapanalysis');
|
||||
|
||||
@@ -44,7 +44,7 @@ $(function()
|
||||
|
||||
function initMenu()
|
||||
{
|
||||
if (arrTypesWithMenu.includes(type))
|
||||
if (navTypes.includes(type))
|
||||
{
|
||||
var myTreeData = [{
|
||||
title: '水果',
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
?>
|
||||
<?php js::set('type', $type); ?>
|
||||
<?php js::set('arrTypesWithMenu', $config->dev->arrTypesWithMenu); ?>
|
||||
<?php js::set('navTypes', $config->dev->navTypes); ?>
|
||||
<?php include 'header.html.php';?>
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class="btn-toolBar pull-left">
|
||||
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex gap-15">
|
||||
<?php if(in_array($type, $config->dev->arrTypesWithMenu , false)):?>
|
||||
<?php if(in_array($type, $config->dev->navTypes , false)):?>
|
||||
<div class="menu-tree">
|
||||
<div class="input-control search-box has-icon-left has-icon-right search-example">
|
||||
<input type="search" class="form-control search-input" />
|
||||
|
||||
Reference in New Issue
Block a user