From 04232dafec6bec6e38aba62ac8d703034c9e5066 Mon Sep 17 00:00:00 2001 From: squandor Date: Fri, 30 Dec 2016 17:16:26 +0100 Subject: [PATCH] Fix for issue #26 --- static/js/domoticz.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/domoticz.js b/static/js/domoticz.js index 605fc6a..b4f9cf1 100644 --- a/static/js/domoticz.js +++ b/static/js/domoticz.js @@ -75,8 +75,8 @@ function ShowSmartLog(contentdiv, id, name, switchtype, period) { var actYear = d.getYear() + 1900; if (period == "day") { - var DayChart = $('#' + contentdiv); - DayChart.highcharts({ + $.DayChart = $('#' + contentdiv); + $.DayChart.highcharts({ chart: { type: 'spline', zoomType: 'x', @@ -92,8 +92,8 @@ if (period == "day") { function (data) { data = JSON.parse(data); if (typeof data.result != 'undefined') { - AddDataToUtilityChart(data, DayChart, switchtype); - DayChart.highcharts().redraw(); + AddDataToUtilityChart(data, $.DayChart, switchtype); + $.DayChart.highcharts().redraw(); } }); }