mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Check to make sure element is there before looking inside
This commit is contained in:
parent
f045f6e4f8
commit
8d9c033cbf
@ -75,11 +75,11 @@ function status_changed(changed_id, status_id, percent_id, datecompleted_id)
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (!completed && datecompleted.value != '')
|
||||
if (!completed && datecompleted && datecompleted.value != '')
|
||||
{
|
||||
datecompleted.value = '';
|
||||
}
|
||||
else if (completed && datecompleted.value == '')
|
||||
else if (completed && datecompleted && datecompleted.value == '')
|
||||
{
|
||||
// todo: set current date in correct format
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user