This commit is contained in:
James Cole
2020-10-03 15:16:42 +02:00
parent 5ed3d52e9a
commit f2550a7861
2 changed files with 10 additions and 5 deletions

View File

@@ -241,13 +241,13 @@ function drawBudgetedBars() {
if (budgetedTooMuch) {
// budgeted too much.
pct = (available / budgeted) * 100;
bar.find('.progress-bar-warning').css('width', pct + '%');
bar.find('.progress-bar-danger').css('width', (100 - pct) + '%');
bar.find('.progress-bar-danger').css('width', pct + '%');
bar.find('.progress-bar-warning').css('width', (100 - pct) + '%');
bar.find('.progress-bar-info').css('width', 0);
} else {
pct = (budgeted / available) * 100;
bar.find('.progress-bar-warning').css('width', 0);
bar.find('.progress-bar-danger').css('width', 0);
bar.find('.progress-bar-warning').css('width', 0);
bar.find('.progress-bar-info').css('width', pct + '%');
}
//$('#budgetedAmount').html(currencySymbol + ' ' + budgeted.toFixed(2));