Fix comment worktime reminder
parent
149dfeda95
commit
ceec1e02f7
|
@ -260,7 +260,7 @@ function changeform_onsubmit()
|
|||
return false;
|
||||
|
||||
var wtInput = document.changeform.work_time;
|
||||
if (wtInput)
|
||||
if (!wtInput)
|
||||
{
|
||||
window.checkCommentOnUnload = false;
|
||||
return true;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue