mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-31 18:54:58 +00:00
Fixed tests.
This commit is contained in:
@@ -12,15 +12,15 @@ $(function () {
|
||||
|
||||
function drawChart() {
|
||||
"use strict";
|
||||
if (typeof columnChart !== undefined) {
|
||||
if (typeof columnChart !== 'undefined' && typeof year !== 'undefined' && typeof month === 'undefined') {
|
||||
columnChart('chart/report/in-out/' + year + shared, 'income-expenses-chart');
|
||||
columnChart('chart/report/in-out-sum/' + year + shared, 'income-expenses-sum-chart');
|
||||
}
|
||||
if (typeof stackedColumnChart !== undefined) {
|
||||
if (typeof stackedColumnChart !== 'undefined' && typeof year !== 'undefined' && typeof month === 'undefined') {
|
||||
stackedColumnChart('chart/budget/year/' + year + shared, 'budgets');
|
||||
stackedColumnChart('chart/category/year/' + year + shared, 'categories');
|
||||
}
|
||||
if (typeof lineChart !== undefined && typeof month !== 'undefined') {
|
||||
if (typeof lineChart !== 'undefined' && typeof month !== 'undefined') {
|
||||
lineChart('/chart/account/month/' + year + '/' + month + shared, 'account-balances-chart');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user