mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Fix #1247
This commit is contained in:
4
public/js/ff/index.js
vendored
4
public/js/ff/index.js
vendored
@@ -76,6 +76,10 @@ function getAvailableBox() {
|
||||
$.getJSON('json/box/available').done(function (data) {
|
||||
$('#box-left-to-spend').html(data.left);
|
||||
$('#box-left-per-day').html(data.perDay);
|
||||
$('#box-left-to-spend-text').text(data.text);
|
||||
if(data.overspent === true) {
|
||||
$('#box-left-to-spend-box').removeClass('bg-green-gradient').addClass('bg-red-gradient');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user