mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-25 06:51:08 +00:00
20 lines
781 B
JavaScript
20 lines
781 B
JavaScript
$(function () {
|
|
|
|
if (typeof(googleLineChart) == "function" && typeof accountID != 'undefined') {
|
|
googleLineChart('chart/account/' + accountID, '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(googleTable) == 'function') {
|
|
if (typeof accountID != 'undefined') {
|
|
googleTable('table/account/' + accountID + '/transactions', 'account-transactions');
|
|
}
|
|
if (typeof what != 'undefined') {
|
|
googleTable('table/accounts/' + what, 'account-list');
|
|
}
|
|
}
|
|
|
|
}); |