diff --git a/Makefile b/Makefile
index 2dd791442a..cb782c8d7d 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,9 @@ common:
mv zentaopms/www/install.php.tmp zentaopms/www/install.php
mv zentaopms/www/upgrade.php.tmp zentaopms/www/upgrade.php
cp VERSION zentaopms/
+ # create index.html of each folder.
+ for path in `find zentaopms/ -type d`; do touch "$$path/index.html"; done
+ rm zentaopms/www/index.html
# combine js and css files.
cp -fr tools zentaopms/tools && cd zentaopms/tools/ && php ./minifyfront.php
rm -fr zentaopms/tools
diff --git a/module/action/control.php b/module/action/control.php
index 39694d6531..4066303c92 100755
--- a/module/action/control.php
+++ b/module/action/control.php
@@ -134,7 +134,7 @@ class action extends control
*/
public function editComment($actionID)
{
- if(trim(strip_tags($this->post->lastComment, '
')))
+ if(strlen(trim(strip_tags($this->post->lastComment, '
'))) != 0)
{
$this->action->updateComment($actionID);
}
diff --git a/module/block/view/productstatisticblock.html.php b/module/block/view/productstatisticblock.html.php
index e00a04f25b..71c17ad717 100644
--- a/module/block/view/productstatisticblock.html.php
+++ b/module/block/view/productstatisticblock.html.php
@@ -91,8 +91,11 @@ $(function()
});
var $productLi = $('#activeProduct');
- var productLi = $productLi[0];
- $(".col ul.nav").animate({scrollTop: productLi.offsetTop}, "slow");
+ if($productLi.length)
+ {
+ var productLi = $productLi[0];
+ $(".col ul.nav").animate({scrollTop: productLi.offsetTop}, "slow");
+ }
});
diff --git a/module/block/view/projectstatisticblock.html.php b/module/block/view/projectstatisticblock.html.php
index 95a0fc5657..c485517904 100644
--- a/module/block/view/projectstatisticblock.html.php
+++ b/module/block/view/projectstatisticblock.html.php
@@ -75,8 +75,11 @@ $(function()
});
var $projectLi = $('#activeProject');
- var projectLi = $projectLi[0];
- $(".col ul.nav").animate({scrollTop: projectLi.offsetTop}, "slow");
+ if($projectLi.length)
+ {
+ var projectLi = $projectLi[0];
+ $(".col ul.nav").animate({scrollTop: projectLi.offsetTop}, "slow");
+ }
});
diff --git a/module/common/view/action.html.php b/module/common/view/action.html.php
index d53d4df94d..3648df474c 100755
--- a/module/common/view/action.html.php
+++ b/module/common/view/action.html.php
@@ -47,7 +47,7 @@
- comment and $this->methodName == 'view' and $action->actor == $this->app->user->account and common::hasPriv('action', 'editComment'));?>
+ comment))) != 0 and $this->methodName == 'view' and $action->actor == $this->app->user->account and common::hasPriv('action', 'editComment'));?>
-
actor = zget($users, $action->actor);
@@ -61,7 +61,7 @@
action->printChanges($action->objectType, $action->history);?>
- comment)):?>
+ comment))) != 0):?>
', "title='{$lang->action->editComment}'", 'btn btn-link btn-icon btn-sm btn-edit-comment');?>
diff --git a/module/custom/js/concept.js b/module/custom/js/concept.js
index e2d0786d69..705c0bb8d3 100644
--- a/module/custom/js/concept.js
+++ b/module/custom/js/concept.js
@@ -1,5 +1,6 @@
$(document).ready(function()
-{
+{
+ $('#mainMenu #conceptTab').addClass('btn-active-text');
$('#ajaxForm').ajaxForm(
{
finish:function(response)
diff --git a/module/custom/lang/zh-cn.php b/module/custom/lang/zh-cn.php
index 34623f1b36..b5f554ddbc 100644
--- a/module/custom/lang/zh-cn.php
+++ b/module/custom/lang/zh-cn.php
@@ -79,7 +79,7 @@ $lang->custom->user->fields['statusList'] = '状态';
$lang->custom->user->fields['contactField'] = '可用联系方式';
$lang->custom->user->fields['deleted'] = '列出已删除用户';
-$lang->custom->system = array('flow', 'working', 'required', 'score');
+$lang->custom->system = array('concept', 'flow', 'working', 'required', 'score');
$lang->custom->block->fields['closed'] = '关闭的区块';
diff --git a/module/custom/view/concept.html.php b/module/custom/view/concept.html.php
index 20c2533d16..e839a6c646 100644
--- a/module/custom/view/concept.html.php
+++ b/module/custom/view/concept.html.php
@@ -8,50 +8,53 @@
* @package ZenTaoPMS
* @version $Id: deny.html.php 4129 2013-01-18 01:58:14Z wwccss $
*/
-include '../../common/view/header.lite.html.php';
?>
-config->conceptSetted):?>
-
+config->conceptSetted)):?>
+
-
-
-
-
- custom->notice->conceptResult, $lang->productCommon, $lang->projectCommon, $lang->storyCommon, $lang->hourCommon);?>
+config->conceptSetted)):?>
+