mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 02:45:58 +00:00
Boxes are empty, so even when it's zero, place the amount.
This commit is contained in:
@@ -14,9 +14,7 @@ function getBoxAmounts() {
|
|||||||
for (x in boxes) {
|
for (x in boxes) {
|
||||||
var box = boxes[x];
|
var box = boxes[x];
|
||||||
$.getJSON('/json/box/' + box).success(function (data) {
|
$.getJSON('/json/box/' + box).success(function (data) {
|
||||||
if (data.amount_raw != 0) {
|
|
||||||
$('#box-' + data.box).html(data.amount);
|
$('#box-' + data.box).html(data.amount);
|
||||||
}
|
|
||||||
}).fail(function () {
|
}).fail(function () {
|
||||||
console.log('Failed to get box!')
|
console.log('Failed to get box!')
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user