mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix #3893
This commit is contained in:
6
public/v1/js/ff/budgets/index.js
vendored
6
public/v1/js/ff/budgets/index.js
vendored
@@ -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));
|
||||
|
Reference in New Issue
Block a user