From 42799b9273c3f1b11251b7dc859fff68fe9e5fef Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 24 May 2015 20:48:31 +0200 Subject: [PATCH] Some JS cleanup. --- public/js/budgets.js | 5 ++--- public/js/index.js | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/budgets.js b/public/js/budgets.js index e49c874624..e558d3dcce 100644 --- a/public/js/budgets.js +++ b/public/js/budgets.js @@ -110,9 +110,8 @@ function updateIncome() { function updateRanges() { "use strict"; - /** - * Update all ranges. - */ + + var sum = 0; $('input[type="range"]').each(function (i, v) { // get some values: diff --git a/public/js/index.js b/public/js/index.js index d1291a77a4..6ca893aa6b 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -3,6 +3,7 @@ google.setOnLoadCallback(drawChart); function drawChart() { + "use strict"; googleLineChart('chart/account/frontpage', 'accounts-chart'); googlePieChart('chart/bill/frontpage', 'bills-chart'); googleStackedColumnChart('chart/budget/frontpage', 'budgets-chart');