From 8e93ed66cbdbbfc13299cf95d6ccaaa9f744a3ec Mon Sep 17 00:00:00 2001 From: vfilippov Date: Mon, 8 Aug 2011 12:59:32 +0000 Subject: [PATCH] Bug 83749 git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1333 6955db30-a419-402b-8a0d-67ecbb4d7f56 --- template/en/custom/worktime/supertime.html.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/template/en/custom/worktime/supertime.html.tmpl b/template/en/custom/worktime/supertime.html.tmpl index e9f13d8eb..eb98ded0e 100644 --- a/template/en/custom/worktime/supertime.html.tmpl +++ b/template/en/custom/worktime/supertime.html.tmpl @@ -152,7 +152,7 @@ function divide_hours_click() else inc = sum*period_times[i]/period_sum; inc = Math.round(inc*100)/100; - if (inc < min_inc) + if (inc < min_inc && inc > -min_inc) { [%# не списываем время совсем уж мелкими суммами %] period_count--; @@ -170,6 +170,7 @@ function divide_hours_click() cur = Math.round(cur*100)/100; ed.value = cur; } + refresh_total_wt(); } function divide_hours_check() { @@ -202,6 +203,7 @@ function refresh_total_wt() if (cur == cur && cur) sum += cur; } + sum = Math.round(sum*100)/100; document.getElementById('wtime_total').innerHTML = sum; } function check_who_enabled()