mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-26 05:26:17 +00:00
Clean up some JS and views.
This commit is contained in:
9
public/js/ff/reports/default/month.js
vendored
9
public/js/ff/reports/default/month.js
vendored
@@ -22,17 +22,10 @@
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
drawChart();
|
||||
lineChart(accountChartUri, 'account-balances-chart');
|
||||
|
||||
loadAjaxPartial('categoryReport', categoryReportUri);
|
||||
loadAjaxPartial('budgetReport', budgetReportUri);
|
||||
loadAjaxPartial('balanceReport', balanceReportUri);
|
||||
});
|
||||
|
||||
function drawChart() {
|
||||
"use strict";
|
||||
|
||||
// month view:
|
||||
// draw account chart
|
||||
lineChart(accountChartUri, 'account-balances-chart');
|
||||
}
|
||||
12
public/js/ff/reports/default/multi-year.js
vendored
12
public/js/ff/reports/default/multi-year.js
vendored
@@ -22,18 +22,12 @@
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
drawChart();
|
||||
lineChart(netWorthUri, 'net-worth');
|
||||
columnChart(opChartUri, 'income-expenses-chart');
|
||||
columnChart(sumChartUri, 'income-expenses-sum-chart');
|
||||
|
||||
loadAjaxPartial('budgetPeriodReport', budgetPeriodReportUri);
|
||||
loadAjaxPartial('categoryExpense', categoryExpenseUri);
|
||||
loadAjaxPartial('categoryIncome', categoryIncomeUri);
|
||||
});
|
||||
|
||||
function drawChart() {
|
||||
"use strict";
|
||||
|
||||
// income and expense over multi year:
|
||||
lineChart(netWorthUri, 'net-worth');
|
||||
columnChart(opChartUri, 'income-expenses-chart');
|
||||
columnChart(sumChartUri, 'income-expenses-sum-chart');
|
||||
}
|
||||
|
||||
13
public/js/ff/reports/default/year.js
vendored
13
public/js/ff/reports/default/year.js
vendored
@@ -22,19 +22,12 @@
|
||||
|
||||
$(function () {
|
||||
"use strict";
|
||||
drawChart();
|
||||
lineChart(netWorthUri, 'net-worth');
|
||||
columnChart(opChartUri, 'income-expenses-chart');
|
||||
columnChart(sumChartUri, 'income-expenses-sum-chart');
|
||||
|
||||
loadAjaxPartial('budgetPeriodReport', budgetPeriodReportUri);
|
||||
loadAjaxPartial('categoryExpense', categoryExpenseUri);
|
||||
loadAjaxPartial('categoryIncome', categoryIncomeUri);
|
||||
});
|
||||
|
||||
function drawChart() {
|
||||
"use strict";
|
||||
|
||||
lineChart(netWorthUri, 'net-worth');
|
||||
columnChart(opChartUri, 'income-expenses-chart');
|
||||
columnChart(sumChartUri, 'income-expenses-sum-chart');
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user