mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-22 03:56:42 +00:00
Fix the view for accounts.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
$(function () {
|
||||
|
||||
if (typeof(googleLineChart) == "function" && typeof accountID != 'undefined') {
|
||||
googleLineChart('chart/account/' + accountID, 'overview-chart');
|
||||
if (typeof(googleLineChart) == "function" && typeof accountID != 'undefined' && typeof view != 'undefined') {
|
||||
googleLineChart('chart/account/' + accountID + '/' + view, 'overview-chart');
|
||||
}
|
||||
//
|
||||
if (typeof(googleSankeyChart) == 'function' && typeof accountID != 'undefined') {
|
||||
googleSankeyChart('chart/sankey/' + accountID + '/out', 'account-out-sankey');
|
||||
googleSankeyChart('chart/sankey/' + accountID + '/in', 'account-in-sankey');
|
||||
if (typeof(googleSankeyChart) == 'function' && typeof accountID != 'undefined' && typeof view != 'undefined') {
|
||||
googleSankeyChart('chart/sankey/' + accountID + '/out' + '/' + view, 'account-out-sankey');
|
||||
googleSankeyChart('chart/sankey/' + accountID + '/in' + '/' + view, 'account-in-sankey');
|
||||
}
|
||||
|
||||
});
|
Reference in New Issue
Block a user