mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02: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:
|
case status_id:
|
||||||
completed = status.value == 'done' || status.value == 'billed';
|
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;
|
break;
|
||||||
|
|
||||||
case percent_id:
|
case percent_id:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user