diff --git a/module/admin/model.php b/module/admin/model.php
index 03262e271f..8cc5e5fec1 100755
--- a/module/admin/model.php
+++ b/module/admin/model.php
@@ -343,7 +343,11 @@ class adminModel extends model
$this->loadModel('mail');
if(!$this->config->mail->turnon and !$this->session->mailConfig) $subMenu['link'] = $this->lang->mail->common . '|mail|detect|';
}
- if($menuKey == 'dev' and $subMenuKey == 'editor' and !empty($this->config->global->editor)) $subMenu['link'] = $this->lang->editor->common . '|editor|index|';
+ if($menuKey == 'dev' and $subMenuKey == 'editor')
+ {
+ if(!empty($this->config->global->editor)) $subMenu['link'] = $this->lang->editor->common . '|editor|index|';
+ if(empty($this->config->global->editor) and !$this->app->user->admin) continue;
+ }
$link = array();
if(isset($menu['tabMenu'][$subMenuKey]))
diff --git a/module/block/view/executionblock.html.php b/module/block/view/executionblock.html.php
index 6bb6811063..aa1d3d527e 100644
--- a/module/block/view/executionblock.html.php
+++ b/module/block/view/executionblock.html.php
@@ -45,7 +45,7 @@
$viewLink = $this->createLink('execution', 'task', 'executionID=' . $execution->id);
?>
>
- | name, '', "title='$execution->name'");?> |
+ name, '', "title='$execution->name' class='text-primary'");?> |
end;?> |
diff --git a/module/dev/lang/de.php b/module/dev/lang/de.php
index ff90bc3a20..d9c9d561c4 100644
--- a/module/dev/lang/de.php
+++ b/module/dev/lang/de.php
@@ -202,4 +202,4 @@ $lang->dev->projectMenu['waterfall'] = "Waterfall / Waterfall + {$lang->proj
$lang->dev->projectMenu['kanbanProject'] = "Kanban {$lang->projectCommon}";
if($config->vision == 'lite') $lang->dev->projectMenu['kanbanProject'] = $lang->projectCommon;
-$this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage";
+if($config->vision == 'rnd') $this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage";
diff --git a/module/dev/lang/en.php b/module/dev/lang/en.php
index 024a0761ce..42677ac6db 100644
--- a/module/dev/lang/en.php
+++ b/module/dev/lang/en.php
@@ -202,4 +202,4 @@ $lang->dev->projectMenu['waterfall'] = "Waterfall / Waterfall + {$lang->proj
$lang->dev->projectMenu['kanbanProject'] = "Kanban {$lang->projectCommon}";
if($config->vision == 'lite') $lang->dev->projectMenu['kanbanProject'] = $lang->projectCommon;
-$this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage";
+if($config->vision == 'rnd') $this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage";
diff --git a/module/dev/lang/fr.php b/module/dev/lang/fr.php
index 024a0761ce..42677ac6db 100644
--- a/module/dev/lang/fr.php
+++ b/module/dev/lang/fr.php
@@ -202,4 +202,4 @@ $lang->dev->projectMenu['waterfall'] = "Waterfall / Waterfall + {$lang->proj
$lang->dev->projectMenu['kanbanProject'] = "Kanban {$lang->projectCommon}";
if($config->vision == 'lite') $lang->dev->projectMenu['kanbanProject'] = $lang->projectCommon;
-$this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage";
+if($config->vision == 'rnd') $this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / Stage";
diff --git a/module/dev/lang/zh-cn.php b/module/dev/lang/zh-cn.php
index 890f5b8bcb..784c53cd83 100644
--- a/module/dev/lang/zh-cn.php
+++ b/module/dev/lang/zh-cn.php
@@ -205,4 +205,4 @@ $lang->dev->projectMenu['waterfall'] = "瀑布 / 融合瀑布{$lang->project
$lang->dev->projectMenu['kanbanProject'] = "看板{$lang->projectCommon}";
if($config->vision == 'lite') $lang->dev->projectMenu['kanbanProject'] = $lang->projectCommon;
-$this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / 阶段";
+if($config->vision == 'rnd') $this->lang->dev->replaceLable['project-execution'] = "{$lang->executionCommon} / 阶段";
diff --git a/module/dev/model.php b/module/dev/model.php
index cf4c7cd2af..57d487095a 100644
--- a/module/dev/model.php
+++ b/module/dev/model.php
@@ -536,13 +536,13 @@ class devModel extends model
break;
}
- foreach($customeds as $type => $customed)
+ foreach($customeds as $customType => $customed)
{
if(is_array($customed))
{
foreach($customed as $row)
{
- $langKey = $type == 'featureBar' ? "featureBar-{$method}_" : $row->section . '_';
+ $langKey = $customType == 'featureBar' ? "featureBar-{$method}_" : $row->section . '_';
$rowKey = $row->key;
$customedLangs[$langKey . $rowKey] = $row->value;
}
diff --git a/module/editor/css/extend.css b/module/editor/css/extend.css
index a9ad22f8ae..4acc96c334 100644
--- a/module/editor/css/extend.css
+++ b/module/editor/css/extend.css
@@ -1,6 +1,7 @@
-body{padding-bottom:0px;background-color:#fff;}
+body {padding-bottom:0px;background-color:#fff;}
.expandable > ul {display: none!important}
.collapsable > ul {display: block!important}
.tree li:before {margin-right: 4px;}
-.tree li>a{display:inline;}
+.tree li > a{display:inline;}
.main-content{padding: 0px; padding-top: 20px;}
+#extendTree li a {white-space: nowrap;}
diff --git a/module/editor/css/index.css b/module/editor/css/index.css
index 4e5c35a06b..0541cdbe10 100644
--- a/module/editor/css/index.css
+++ b/module/editor/css/index.css
@@ -3,5 +3,6 @@ table tr > td:first-child {padding-left: 0;}
table tr > td:last-child {padding-right: 0;}
.modulegroup {font-weight:bold; padding-top:8px; border-top:1px solid #ddd;}
td.w-200px a:hover {font-weight:bold;}
-.w-350px{width:350px;}
-.module-col{padding-bottom:30px;}
+.w-350px {width:350px;}
+.module-col {padding-bottom:30px;}
+.with-list a {white-space: nowrap;}
diff --git a/module/editor/js/index.js b/module/editor/js/index.js
index c2b1ddc184..379148968f 100644
--- a/module/editor/js/index.js
+++ b/module/editor/js/index.js
@@ -1,12 +1,12 @@
$(function()
{
- var showHeight = $('#main').height() - $('#mainMenu').height() - 40;
- $('#editWin').height(showHeight);
- $('#extendWin').height(showHeight);
+ var showHeight = $('#main').height() - $('#mainMenu').height() - 40;
+ $('#editWin').height(showHeight);
+ $('#extendWin').height(showHeight);
- $('.side-col a').click(function()
- {
- $('.side-col a.active').removeClass('active');
- $(this).addClass('active');
- });
+ $('.side-col a').click(function()
+ {
+ $(this).closest('.side-col').find('a.text-primary').removeClass('text-primary');
+ $(this).addClass('text-primary');
+ });
});
diff --git a/module/editor/view/extend.html.php b/module/editor/view/extend.html.php
index 291d2e6af4..7e6ab7964b 100644
--- a/module/editor/view/extend.html.php
+++ b/module/editor/view/extend.html.php
@@ -38,6 +38,19 @@ $(function()
$this.addClass('expandable-hitarea').removeClass('collapsable-hitarea');
}
});
+
+ $('.has-list a').on('click', function()
+ {
+ $('.has-list a.text-primary').removeClass('text-primary active');
+ $(this).addClass('text-primary active');
+ }).on('mouseover', function()
+ {
+ $('.has-list a:not(.active)').removeClass('text-primary');
+ $(this).addClass('text-primary');
+ }).on('mouseout', function()
+ {
+ if(!$(this).hasClass('active')) $(this).removeClass('text-primary');
+ });
});
diff --git a/module/execution/view/create.html.php b/module/execution/view/create.html.php
index 6e9c1acd9a..2781a20e1a 100644
--- a/module/execution/view/create.html.php
+++ b/module/execution/view/create.html.php
@@ -156,7 +156,7 @@
type != 'normal' and isset($branchGroups[$product->id]);?>
|