Fixed some JS bugs [skip ci]

This commit is contained in:
James Cole 2015-06-02 18:13:23 +02:00
parent be17e4481e
commit 2e75446665

View File

@ -2,7 +2,7 @@
function drawSpentBar() {
"use strict";
if ($('.spentBar').length > 0) {
var overspent = spent > budgeted;
var pct;
@ -17,9 +17,12 @@ function drawSpentBar() {
$('.spentBar .progress-bar-info').css('width', pct + '%');
}
}
}
function drawBudgetedBar() {
"use strict";
if ($('.budgetedBar').length > 0) {
var budgetedMuch = budgeted > budgetIncomeTotal;
// recalculate percentage:
@ -40,6 +43,7 @@ function drawBudgetedBar() {
$('#budgetedAmount').html(currencySymbol + ' ' + budgeted.toFixed(2));
}
}
function updateBudgetedAmounts(e) {
"use strict";