diff --git a/www/js/analog.js b/www/js/analog.js index f70e2ed7..0e239832 100644 --- a/www/js/analog.js +++ b/www/js/analog.js @@ -788,15 +788,14 @@ var showAnalogSensorCharts = ( function() { "
" + "
" + "" + - "" ), - chart1, chart2, chart3; + "" ); function begin() { $.mobile.loading( "show" ); - chart1 = new Array( CHARTS ); - chart2 = new Array( CHARTS ); - chart3 = new Array( CHARTS ); + var chart1 = new Array( CHARTS ), + chart2 = new Array( CHARTS ), + chart3 = new Array( CHARTS ); page.one( "pagehide", function() { page.detach(); @@ -815,7 +814,6 @@ var showAnalogSensorCharts = ( function() { $( "#analogsensorchart" ).remove(); $.mobile.pageContainer.append( page ); - //SendToOS("/so?pw=&lasthours=24&csv=2", "text").then(function (csv) { sendToOS( "/so?pw=&lasthours=24&csv=2", "text" ).then( function( csv1 ) { buildGraph( "#myChart", chart1, csv1, _( "last 24h" ), "HH:mm" );