First full transaction list (again) and removed some google table references.

This commit is contained in:
James Cole
2014-11-14 09:34:53 +01:00
parent a58a560bbb
commit 0530c0402c
7 changed files with 122 additions and 20 deletions

View File

@@ -8,13 +8,5 @@ $(function () {
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');
}
}
});

View File

@@ -7,14 +7,8 @@ $(function () {
$('.updateIncome').on('click', updateIncome);
if (typeof(googleTable) == 'function') {
if (typeof componentID != 'undefined' && typeof repetitionID == 'undefined') {
googleTable('table/component/' + componentID + '/0/transactions', 'transactions');
googleColumnChart('chart/component/' + componentID + '/spending/' + year, 'componentOverview');
} else if (typeof componentID != 'undefined' && typeof repetitionID != 'undefined') {
googleTable('table/component/' + componentID + '/' + repetitionID + '/transactions', 'transactions');
}
if (typeof componentID != 'undefined' && typeof repetitionID == 'undefined') {
googleColumnChart('chart/component/' + componentID + '/spending/' + year, 'componentOverview');
}
});