mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
New stuff for report.
This commit is contained in:
8
public/js/ff/reports/account/all.js
vendored
Normal file
8
public/js/ff/reports/account/all.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
function loadAjaxPartial(holder, uri) {
|
||||
"use strict";
|
||||
$.get(uri).done(function (data) {
|
||||
displayAjaxPartial(data, holder);
|
||||
}).fail(function () {
|
||||
failAjaxPartial(uri, holder);
|
||||
});
|
||||
}
|
21
public/js/ff/reports/account/month.js
vendored
Normal file
21
public/js/ff/reports/account/month.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
drawChart();
|
||||
|
||||
loadAjaxPartial('inOutAccounts', spentUri);
|
||||
loadAjaxPartial('inOutPeriod', groupedUri);
|
||||
loadAjaxPartial('inOutCategory', categoryUri);
|
||||
loadAjaxPartial('inOutBudget', budgetUri);
|
||||
loadAjaxPartial('topXexpense', expenseUri);
|
||||
loadAjaxPartial('topXincome', incomeUri);
|
||||
|
||||
});
|
||||
|
||||
function drawChart() {
|
||||
"use strict";
|
||||
|
||||
// month view:
|
||||
// draw account chart
|
||||
lineChart(mainUri, 'in-out-chart');
|
||||
}
|
Reference in New Issue
Block a user