mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
if status changed to ongoing, set percent to 10
This commit is contained in:
parent
55602bef6d
commit
15d8b369f5
@ -46,7 +46,11 @@ function status_changed(changed_id, status_id, percent_id, datecompleted_id)
|
||||
{
|
||||
case status_id:
|
||||
completed = status.value == 'done' || status.value == 'billed';
|
||||
if (completed || status.value == 'not-started') percent.value = completed ? 100 : 0;
|
||||
if (completed || status.value == 'not-started' ||
|
||||
(status.value == 'ongoing') != (percent.value > 0 && percent.value < 100))
|
||||
{
|
||||
percent.value = completed ? 100 : (status.value == 'not-started' ? 0 : 10);
|
||||
}
|
||||
break;
|
||||
|
||||
case percent_id:
|
||||
|
Loading…
Reference in New Issue
Block a user