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

@@ -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');
}
});