Bug 40933 - Do not require work_time input on bug form

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1530 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2012-04-27 10:45:39 +00:00
parent a07e3bc2d6
commit c05311545c
1 changed files with 6 additions and 3 deletions

View File

@ -195,7 +195,10 @@ function updateRemainingTime()
function changeform_onsubmit()
{
var wt = bzParseTime(document.changeform.work_time.value);
var wtInput = document.changeform.work_time;
if (!wtInput)
return true;
var wt = bzParseTime(wtInput.value);
var awt = wt;
if (wt != wt)
awt = 0;
@ -206,11 +209,11 @@ function changeform_onsubmit()
awt = prompt("Please, verify working time:", !wt || wt != wt ? "0" : wt);
if (awt === null || awt === undefined || (""+awt).length <= 0)
{
document.changeform.work_time.focus();
wtInput.focus();
return false;
}
}
document.changeform.work_time.value = awt;
wtInput.value = awt;
adjustRemainingTime();
return true;
}