mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Various code cleanup.
This commit is contained in:
3
public/js/ff/firefly.js
vendored
3
public/js/ff/firefly.js
vendored
@@ -65,7 +65,8 @@ $(function () {
|
||||
$.post(dateRangeMeta.uri, {
|
||||
start: start.format('YYYY-MM-DD'),
|
||||
end: end.format('YYYY-MM-DD'),
|
||||
label: label
|
||||
label: label,
|
||||
_token: token
|
||||
}).done(function () {
|
||||
window.location.reload(true);
|
||||
}).fail(function () {
|
||||
|
22
public/js/ff/index.js
vendored
22
public/js/ff/index.js
vendored
@@ -102,26 +102,4 @@ function getBalanceBox() {
|
||||
$('#box-balance-in').html(data.income);
|
||||
$('#box-balance-out').html(data.expense);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function getBoxAmounts() {
|
||||
"use strict";
|
||||
var boxes = ['in', 'out', 'bills-unpaid', 'bills-paid'];
|
||||
for (var x in boxes) {
|
||||
if (!boxes.hasOwnProperty(x)) {
|
||||
continue;
|
||||
}
|
||||
var box = boxes[x];
|
||||
$.getJSON('json/box/' + box).done(putData).fail(failData);
|
||||
}
|
||||
}
|
||||
|
||||
function putData(data) {
|
||||
"use strict";
|
||||
$('#box-' + data.box).html(data.amount);
|
||||
}
|
||||
|
||||
function failData() {
|
||||
"use strict";
|
||||
}
|
Reference in New Issue
Block a user