diff --git a/module/doc/view/content.html.php b/module/doc/view/content.html.php index e0bf9ba33c..15dddb0a17 100644 --- a/module/doc/view/content.html.php +++ b/module/doc/view/content.html.php @@ -296,7 +296,7 @@ $(function() { var simplemde = new SimpleMDE({element: $("#markdownContent")[0],toolbar:false, status: false}); - simplemde.value(String(markdownText)); + //simplemde.value(String(markdownText)); simplemde.togglePreview(); $('#content .CodeMirror .editor-preview a').attr('target', '_blank'); diff --git a/module/doc/view/view.html.php b/module/doc/view/view.html.php index 5f3c5be6a7..9b7090080f 100644 --- a/module/doc/view/view.html.php +++ b/module/doc/view/view.html.php @@ -249,7 +249,7 @@ js::set('docID', $doc->id); $(function() { var simplemde = new SimpleMDE({element: $("#markdownContent")[0],toolbar:false, status: false}); - simplemde.value(String(markdownText)); + //simplemde.value(String(markdownText)); simplemde.togglePreview(); $('#content .CodeMirror .editor-preview a').attr('target', '_blank'); diff --git a/module/execution/lang/zh-cn.php b/module/execution/lang/zh-cn.php index 2c93cb2e76..320385aef4 100644 --- a/module/execution/lang/zh-cn.php +++ b/module/execution/lang/zh-cn.php @@ -351,8 +351,8 @@ $lang->execution->howToUpdateBurn = "关联{$lang->SRCommon}。"; -$lang->execution->haveBranchDraft = "有%s条非激活状态或不是{$lang->executionCommon}关联分支的{$lang->SRCommon}无法导入"; -$lang->execution->haveDraft = "有%s条非激活状态的{$lang->SRCommon}无法导入"; +$lang->execution->haveBranchDraft = "导入完成!有%s条非激活状态或不是{$lang->executionCommon}关联分支的{$lang->SRCommon}无法导入"; +$lang->execution->haveDraft = "导入完成!有%s条非激活状态的{$lang->SRCommon}无法导入"; $lang->execution->doneExecutions = '已结束'; $lang->execution->selectDept = '选择部门'; $lang->execution->selectDeptTitle = '选择一个部门的成员'; diff --git a/module/execution/view/create.html.php b/module/execution/view/create.html.php index c1e6389f56..87b0986e9f 100644 --- a/module/execution/view/create.html.php +++ b/module/execution/view/create.html.php @@ -134,7 +134,7 @@ - project->manageProductPlan;?> + project->manageProductPlan;?>
@@ -149,7 +149,7 @@
'>
project->branch;?> - branches);?> + branches) ? join(',', $product->branches) : '';?> id]) ? $branchGroups[$product->id] : array(), $branchIdList, "class='form-control chosen' multiple onchange=\"loadPlans('#products{$i}', this)\"");?>
@@ -158,7 +158,7 @@
> product->plan;?> - id][]", isset($productPlans[$product->id]) ? $productPlans[$product->id] : array(), $product->plans, "class='form-control chosen' multiple");?> + id][]", isset($productPlans[$product->id]) ? $productPlans[$product->id] : array(), isset($product->plans) ? $product->plans : '', "class='form-control chosen' multiple");?>
> diff --git a/module/my/view/requirement.html.php b/module/my/view/requirement.html.php index 8765bec631..46d5c6bbf9 100644 --- a/module/my/view/requirement.html.php +++ b/module/my/view/requirement.html.php @@ -76,7 +76,7 @@ createLink('story', 'view', "id=$story->id"); + $storyLink = $this->createLink('story', 'view', "id=$story->id&version=0¶m=0&storyType=requirement"); $canBeChanged = common::canBeChanged('story', $story); $spanClass = $canBatchAction ? 'c-span' : ''; ?> diff --git a/module/product/control.php b/module/product/control.php index 4045f5c654..385e17f7e9 100755 --- a/module/product/control.php +++ b/module/product/control.php @@ -249,7 +249,7 @@ class product extends control $showBranch = $this->loadModel('branch')->showBranch($productID); /* Get stories. */ - if($isProjectStory) + if($isProjectStory and $storyType == 'story') { $showBranch = $this->loadModel('branch')->showBranch($productID, 0, $projectID); diff --git a/module/productplan/css/view.css b/module/productplan/css/view.css index cffbb1ac2d..64fc550a1c 100644 --- a/module/productplan/css/view.css +++ b/module/productplan/css/view.css @@ -33,3 +33,6 @@ ol, ul {padding-left: 20px;} #mainMenu .btn-toolbar .page-title .text {max-width: 434px; overflow: hidden; white-space:nowrap; margin-right: 6px;} #actionsBox a:last-of-type + .divider {display: none;} #actionsBox div.divider:first-child {display: none;} + +#bugs th.c-pri, #bugs th.c-actions {width:72px !important;} +#bugs th.c-status, #bugs th.c-user {width:120px !important;} diff --git a/module/productplan/view/browsebylist.html.php b/module/productplan/view/browsebylist.html.php index 7eabe9d192..c46b8cd66c 100644 --- a/module/productplan/view/browsebylist.html.php +++ b/module/productplan/view/browsebylist.html.php @@ -84,7 +84,7 @@ productplan->status);?> session->currentProductType != 'normal'):?> - productplan->branch);?> + product->branchName[$product->type]);?> productplan->begin);?> productplan->end);?> diff --git a/module/productplan/view/view.html.php b/module/productplan/view/view.html.php index 4c91630e9c..d01f599e3b 100644 --- a/module/productplan/view/view.html.php +++ b/module/productplan/view/view.html.php @@ -124,8 +124,8 @@ idAB);?> - priAB);?> story->title);?> + priAB);?> statusAB);?> @@ -139,15 +139,15 @@ productplan->updateOrder);?> - priAB);?> - story->module);?> - story->title);?> - openedByAB);?> - assignedToAB);?> - story->estimateAB);?> - statusAB);?> - story->stageAB);?> - actions?> + story->title);?> + story->module);?> + priAB);?> + statusAB);?> + openedByAB);?> + assignedToAB);?> + story->estimateAB);?> + story->stageAB);?> + actions?> @@ -165,13 +165,13 @@ id);?> - " title='story->priList, $story->pri);?>'>story->priList, $story->pri);?> parent > 0) echo "story->children}>{$lang->story->childrenAB}"; echo $story->title; ?> + " title='story->priList, $story->pri);?>'>story->priList, $story->pri);?> processStatus('story', $story);?> @@ -186,22 +186,20 @@ - " title='story->priList, $story->pri);?>'>story->priList, $story->pri);?> - '>module, '');?> parent > 0) echo "story->children}>{$lang->story->childrenAB}"; echo html::a($viewLink , $story->title, '', "style='color: $story->color' data-app={$this->app->tab}"); ?> + '>module, '');?> + " title='story->priList, $story->pri);?>'>story->priList, $story->pri);?> + + processStatus('story', $story);?> + openedBy);?> assignedTo);?> estimate . $config->hourUnit;?> - - - processStatus('story', $story);?> - - story->stageList[$story->stage];?> idAB);?> - priAB);?> bug->title);?> + priAB);?> bug->status);?> @@ -431,12 +429,12 @@ idAB);?> - priAB);?> - bug->title);?> + bug->title);?> + priAB);?> + bug->status);?> openedByAB);?> bug->assignedToAB);?> - bug->status);?> - actions?> + actions?> @@ -447,12 +445,10 @@ id);?> - bug->priList, $bug->pri);?> title?> + bug->priList, $bug->pri);?> - - processStatus('bug', $bug);?> - + processStatus('bug', $bug);?> @@ -462,15 +458,13 @@ id);?> - bug->priList, $bug->pri);?> createLink('bug', 'view', "bugID=$bug->id"), $bug->title, '', "data-app={$this->app->tab}");?> + bug->priList, $bug->pri);?> + + processStatus('bug', $bug);?> + openedBy);?> assignedTo);?> - - - processStatus('bug', $bug);?> - - build->id;?> build->name;?> hasProduct):?> - build->product;?> + build->product;?> - build->branch;?> + build->branch;?> multiple):?> diff --git a/module/story/js/create.js b/module/story/js/create.js index 3ebb1e04e9..80f87bdbe7 100644 --- a/module/story/js/create.js +++ b/module/story/js/create.js @@ -132,6 +132,7 @@ $(window).unload(function(){ */ function addBranchesBox(obj) { + $('#storyNoticeBranch').closest('tr').removeClass('hidden'); if($(".table-form select[id^='branches']").length == $('.switchBranch #branchBox option').length) return false; var selectedVal = []; @@ -193,6 +194,7 @@ $(window).unload(function(){ $('.icon-plus').parent().css('pointer-events', 'auto') $('.icon-plus').parent().removeClass('disabled') + if($('select[name^="branches"]').length == 2) $('#storyNoticeBranch').closest('tr').addClass('hidden'); } /** diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index 209063fc58..138f437f69 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -115,7 +115,7 @@ foreach(explode(',', $config->story->create->requiredFields) as $field)
- + story->notice->branch;?>