status empty Solved

This commit is contained in:
Dante
2015-05-05 11:08:15 -04:00
parent 4b03c189fd
commit 1d95ebdc15
5 changed files with 13 additions and 7 deletions

View File

@@ -179,7 +179,7 @@ ViewDashboardPresenter.prototype.setStatusButtonWidthsAndDisplayValues = functio
: overdue.valueRounded + "%";
onTime.valueToShow = (this.helper.zeroIfNull(onTime.valueRounded) == 0)
? G_STRING['ID_INBOX'] + ' ' + G_STRING['ID_EMPTY']
? ""
: onTime.valueRounded + "%";
classifyBar(atRisk);
@@ -200,6 +200,11 @@ ViewDashboardPresenter.prototype.setStatusButtonWidthsAndDisplayValues = functio
bar.width = minPercent;
});
if (atRisk.valueToShow == 0 && overdue.valueToShow == 0 && onTime.valueToShow == 0) {
onTime.valueToShow = G_STRING['ID_INBOX'] + ' ' + G_STRING['ID_EMPTY'];
onTime.width = 100;
}
data.percentageOverdueWidth = overdue.width;
data.percentageOnTimeWidth = onTime.width;
data.percentageAtRiskWidth = atRisk.width;