Hopefully resolve completed vs status with custom statuses.

This commit is contained in:
Nathan Gray 2015-11-20 16:33:59 +00:00
parent ecbb564dfe
commit 2dee92b877

View File

@ -393,7 +393,18 @@ app.classes.infolog = AppJS.extend(
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);
if(completed)
{
percent.value = 100;
}
else if (status.value == 'not-started')
{
percent.value = 0;
}
else if (!completed && percent.value == 100)
{
percent.value = 10;
}
}
break;