aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorIshitva Goel <ishitva.goel@yahoo.co.in>2014-03-10 15:08:57 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2014-03-10 15:08:57 +0100
commit14297c3f99da39acf42f359247f68f754da03fca (patch)
treed1288bca2508abafb038fe526aacc7f8d749bcb7 /template/en/default/bug
parentcd4b2663e6605bbc407110e89b1d06307640b740 (diff)
downloadbugs-14297c3f99da39acf42f359247f68f754da03fca.tar
bugs-14297c3f99da39acf42f359247f68f754da03fca.tar.gz
bugs-14297c3f99da39acf42f359247f68f754da03fca.tar.bz2
bugs-14297c3f99da39acf42f359247f68f754da03fca.tar.xz
bugs-14297c3f99da39acf42f359247f68f754da03fca.zip
Bug 566331: Move JS functions out of bug/edit.html.tmpl
r=LpSolit a=justdave
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/edit.html.tmpl18
1 files changed, 1 insertions, 17 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 3a2a81d8e..61fa2c1ec 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -36,23 +36,7 @@
<script type="text/javascript">
<!--
[% IF user.is_timetracker %]
- var fRemainingTime = [% bug.remaining_time %]; // holds the original value
- function adjustRemainingTime() {
- // subtracts time spent from remaining time
- var new_time;
-
- // prevent negative values if work_time > fRemainingTime
- new_time =
- Math.max(fRemainingTime - document.changeform.work_time.value, 0.0);
- // get upto 2 decimal places
- document.changeform.remaining_time.value =
- Math.round(new_time * 100)/100;
- }
-
- function updateRemainingTime() {
- // if the remaining time is changed manually, update fRemainingTime
- fRemainingTime = document.changeform.remaining_time.value;
- }
+ var bz_remaining_time = [% bug.remaining_time %];
[% END %]
[% IF user.id %]