From 51fb6934f15b25b32c70630b6f1be55b7b8f4a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=94=E5=93=A5?= Date: Thu, 25 Oct 2018 07:57:36 +0800 Subject: [PATCH 1/6] * Fix bug. --- module/misc/view/links.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/misc/view/links.html.php b/module/misc/view/links.html.php index 670c3c8eda..4caafa7178 100755 --- a/module/misc/view/links.html.php +++ b/module/misc/view/links.html.php @@ -9,7 +9,7 @@
-
+
'>

From 0944c9e8c9b7dfc5f5d7ed7c9581d82af8625afe Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 25 Oct 2018 10:21:08 +0800 Subject: [PATCH 6/6] * round estimate in browse page. --- module/product/view/browse.html.php | 2 +- module/project/view/task.html.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index 6ab0ebce5d..2a08b4fd6e 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -405,7 +405,7 @@ $(function() }); var rate = Math.round(checkedCase / checkedTotal * 10000) / 100 + '' + '%'; return checkedSummary.replace('%total%', checkedTotal) - .replace('%estimate%', checkedEstimate) + .replace('%estimate%', checkedEstimate.toFixed(1)) .replace('%rate%', rate); } }); diff --git a/module/project/view/task.html.php b/module/project/view/task.html.php index 06f247e3ae..2dee532eaa 100644 --- a/module/project/view/task.html.php +++ b/module/project/view/task.html.php @@ -372,9 +372,9 @@ $(function() }); return checkedSummary.replace('%total%', checkedTotal).replace('%wait%', checkedWait) .replace('%doing%', checkedDoing) - .replace('%estimate%', checkedEstimate) - .replace('%consumed%', checkedConsumed) - .replace('%left%', checkedLeft); + .replace('%estimate%', checkedEstimate.toFixed(1)) + .replace('%consumed%', checkedConsumed.toFixed(1)) + .replace('%left%', checkedLeft.toFixed(1)); } }) });