2016-12-23 07:02:45 +01:00
|
|
|
/*
|
|
|
|
* month.js
|
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
|
|
*
|
|
|
|
* This software may be modified and distributed under the terms of the
|
|
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
|
|
*
|
|
|
|
* See the LICENSE file for details.
|
|
|
|
*/
|
2015-06-27 16:00:50 +02:00
|
|
|
|
2017-01-02 10:34:01 +01:00
|
|
|
/** global: categoryReportUri, budgetReportUri, balanceReportUri, accountChartUri */
|
|
|
|
|
2015-06-27 16:00:50 +02:00
|
|
|
$(function () {
|
|
|
|
"use strict";
|
2015-08-01 07:22:48 +02:00
|
|
|
drawChart();
|
2016-10-26 16:46:43 +02:00
|
|
|
|
2016-11-02 20:45:11 +01:00
|
|
|
loadAjaxPartial('categoryReport', categoryReportUri);
|
|
|
|
loadAjaxPartial('budgetReport', budgetReportUri);
|
|
|
|
loadAjaxPartial('balanceReport',balanceReportUri);
|
2015-06-27 16:00:50 +02:00
|
|
|
});
|
2015-03-04 20:47:00 +01:00
|
|
|
|
2015-05-08 17:13:49 +02:00
|
|
|
function drawChart() {
|
2015-05-24 20:41:14 +02:00
|
|
|
"use strict";
|
2015-12-12 19:04:30 +01:00
|
|
|
|
2015-12-14 20:37:38 +01:00
|
|
|
// month view:
|
|
|
|
// draw account chart
|
2016-12-06 06:52:17 +01:00
|
|
|
lineChart(accountChartUri, 'account-balances-chart');
|
2015-12-03 14:52:10 +01:00
|
|
|
}
|