From: Emmanuel S. <se...@us...> - 2005-07-17 22:52:27
|
Update of /cvsroot/bugzilla-fr/Bugzilla-fr_2.18/fr/default/bug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11771/fr/default/bug Modified Files: edit.html.tmpl Log Message: Passage de 2.18 a 2.18.1 Index: edit.html.tmpl =================================================================== RCS file: /cvsroot/bugzilla-fr/Bugzilla-fr_2.18/fr/default/bug/edit.html.tmpl,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** edit.html.tmpl 17 Jul 2005 18:11:20 -0000 1.12 --- edit.html.tmpl 17 Jul 2005 22:52:18 -0000 1.13 *************** *** 98,103 **** var new_time; new_time = ! fRemainingTime - document.changeform.work_time.value; // get upto 2 decimal places document.changeform.remaining_time.value = --- 98,104 ---- 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 = |