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 + "%"; : overdue.valueRounded + "%";
onTime.valueToShow = (this.helper.zeroIfNull(onTime.valueRounded) == 0) onTime.valueToShow = (this.helper.zeroIfNull(onTime.valueRounded) == 0)
? G_STRING['ID_INBOX'] + ' ' + G_STRING['ID_EMPTY'] ? ""
: onTime.valueRounded + "%"; : onTime.valueRounded + "%";
classifyBar(atRisk); classifyBar(atRisk);
@@ -200,6 +200,11 @@ ViewDashboardPresenter.prototype.setStatusButtonWidthsAndDisplayValues = functio
bar.width = minPercent; 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.percentageOverdueWidth = overdue.width;
data.percentageOnTimeWidth = onTime.width; data.percentageOnTimeWidth = onTime.width;
data.percentageAtRiskWidth = atRisk.width; data.percentageAtRiskWidth = atRisk.width;

View File

@@ -64,7 +64,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="panel-footer text-center ind-title-selector"> <div class="panel-footer text-center ind-title-selector ellipsis">
<%- indicator.title %> <%- indicator.title %>
</div> </div>
</a> </a>
@@ -107,7 +107,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="panel-footer text-center ind-title-selector" style="clear:both; color:#606368;"> <div class="panel-footer text-center ind-title-selector ellipsis" style="clear:both; color:#606368;">
<%- indicator.title %> <%- indicator.title %>
</div> </div>
</a> </a>
@@ -138,7 +138,7 @@
style="width: 0%"> style="width: 0%">
</div> </div>
</div> </div>
<div class="panel-footer text-center ind-title-selector"> <div class="panel-footer text-center ind-title-selector ellipsis">
<span> <span>
<%- indicator.title %> <%- indicator.title %>
</span> </span>

View File

@@ -49,7 +49,7 @@
} }
.status-indicator-low { .status-indicator-low {
background-color: #e14333; background-color: #EA3C53;
} }
.status-indicator-medium { .status-indicator-medium {
background-color: #fcb322; background-color: #fcb322;

View File

@@ -98,7 +98,7 @@
.grid-stack-item[data-gs-x="2"] { left: 16.66666667% } .grid-stack-item[data-gs-x="2"] { left: 16.66666667% }
.grid-stack-item[data-gs-x="1"] { left: 8.33333333% } .grid-stack-item[data-gs-x="1"] { left: 8.33333333% }
@media (max-width: 768px) { @media (max-width: 1000px) {
.grid-stack-item { .grid-stack-item {
position: relative !important; position: relative !important;
width: auto !important; width: auto !important;

View File

@@ -336,7 +336,8 @@ table.dataTable thead .sorting:after {
.panel-red .panel-heading { .panel-red .panel-heading {
border-color: #e14333; border-color: #e14333;
color: #fff; color: #fff;
background-color: #e14333; /*background-color: #e14333;*/
background-color: #EA3C53;
} }
.panel-red a { .panel-red a {