Fix comment worktime reminder

3col
Vitaliy Filippov 2015-01-14 23:48:10 +03:00
parent 149dfeda95
commit ceec1e02f7
2 changed files with 18 additions and 14 deletions

View File

@ -260,7 +260,7 @@ function changeform_onsubmit()
return false;
var wtInput = document.changeform.work_time;
if (wtInput)
if (!wtInput)
{
window.checkCommentOnUnload = false;
return true;

View File

@ -155,6 +155,8 @@ function validateEntryForm(theform)
}
// Validate worktime
if (theform.work_time)
{
var wt = bzParseTime(theform.work_time.value);
if (wt !== null && (wt === undefined || wt != wt))
wt = null;
@ -172,6 +174,8 @@ function validateEntryForm(theform)
if (wt === null)
wt = 0;
theform.work_time.value = wt;
}
window.checkCommentOnUnload = false;
return true;
}