From 203fd21ff2da984f05549430b926ba9db40b86b1 Mon Sep 17 00:00:00 2001
From: estellbright <1457749147@qq.com>
Date: Wed, 11 Jul 2018 10:27:04 +0800
Subject: [PATCH] Fix Bug #1943,1997,1998,2001,2015.
---
module/project/css/task.css | 1 +
module/project/view/view.html.php | 4 +--
module/story/view/review.html.php | 2 +-
module/task/js/common.js | 51 +++++++++++++++++++++++++++++++
module/task/view/view.html.php | 2 +-
5 files changed, 56 insertions(+), 4 deletions(-)
diff --git a/module/project/css/task.css b/module/project/css/task.css
index e69de29bb2..e30b6a07e9 100644
--- a/module/project/css/task.css
+++ b/module/project/css/task.css
@@ -0,0 +1 @@
+td.delayed{background: #e84e0f!important; color: white;}
diff --git a/module/project/view/view.html.php b/module/project/view/view.html.php
index b4adbbe2a6..f6d4e12bc1 100644
--- a/module/project/view/view.html.php
+++ b/module/project/view/view.html.php
@@ -203,7 +203,7 @@
- totalHours ? round($project->totalConsumed / $project->totalHours, 3) * 100 : 0;?>
+ totalConsumed + $project->totalLeft) ? round($project->totalConsumed / ($project->totalConsumed + $project->totalLeft), 3) * 100 : 0;?>
projectCommon . $lang->project->progress;?> percent;?>
@@ -226,7 +226,7 @@
project->totalDays;?> |
days;?> |
project->totalLeft;?> |
- totalLeft;?> |
+ totalLeft . $lang->project->workHour;?> |
|
| project->totalHours;?> |
diff --git a/module/story/view/review.html.php b/module/story/view/review.html.php
index 4f5435cf03..3e01190381 100644
--- a/module/story/view/review.html.php
+++ b/module/story/view/review.html.php
@@ -32,7 +32,7 @@ var assignedTo = 'lastEditedBy ? print($story->lastEditedBy) : pri
| story->reviewResult;?> |
- story->reviewResultList, '', 'class=form-control onchange="switchShow(this.value)"');?> | |
+ story->reviewResultList, '', 'class=form-control onchange="switchShow(this.value)"');?> | |
| story->rejectedReason;?> |
diff --git a/module/task/js/common.js b/module/task/js/common.js
index e69de29bb2..4fb3b9b7b7 100644
--- a/module/task/js/common.js
+++ b/module/task/js/common.js
@@ -0,0 +1,51 @@
+function adjustSortBtn()
+{
+ $('.btn-move-up:first').addClass('disabled').attr('disabled', 'disabled');
+ $('.btn-move-down:last').addClass('disabled').attr('disabled', 'disabled');
+}
+
+$('.btn-move-up, .btn-move-down').click(function()
+{
+ var $this = $(this);
+ if($this.hasClass('btn-move-up'))
+ {
+ $(this).parents('tr').prev().before($(this).parents('tr'));
+ }
+ else
+ {
+ $this.parents('tr').next().after($(this).parents('tr'));
+ }
+ $('.btn-move-up, .btn-move-down').removeClass('disabled').removeAttr('disabled');
+
+ adjustSortBtn();
+});
+
+function adjustSortBtn()
+{
+ $('.btn-move-up:first').addClass('disabled').attr('disabled', 'disabled');
+ $('.btn-move-down:last').addClass('disabled').attr('disabled', 'disabled');
+}
+
+$('#modalTeam .btn').click(function()
+{
+ var team = '';
+ var time = 0;
+ $('[name*=team]').each(function()
+ {
+ if($(this).find('option:selected').text() != '')
+ {
+ team += ' ' + $(this).find('option:selected').text();
+ }
+
+ estimate = parseFloat($(this).parents('td').next('td').find('[name*=teamEstimate]').val());
+ if(!isNaN(estimate))
+ {
+ time += estimate;
+ }
+
+ $('#teamMember').val(team);
+ $('#estimate').val(time);
+ })
+});
+
+//end
diff --git a/module/task/view/view.html.php b/module/task/view/view.html.php
index 8761407221..1143e5082a 100644
--- a/module/task/view/view.html.php
+++ b/module/task/view/view.html.php
@@ -222,7 +222,7 @@
mailto));
- if(empty($mainto))
+ if(empty($mailto))
{
echo $lang->noData;
}
|