From 3c080ad7ebe97016b19f0a67f4bc94a4cfcf65bc Mon Sep 17 00:00:00 2001 From: yvesf Date: Mon, 18 Jul 2011 09:17:10 +0200 Subject: relative pfade --- ebus/webapp/static/ebus.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ebus/webapp/static/ebus.js') diff --git a/ebus/webapp/static/ebus.js b/ebus/webapp/static/ebus.js index afd667f..4563ee9 100644 --- a/ebus/webapp/static/ebus.js +++ b/ebus/webapp/static/ebus.js @@ -45,7 +45,7 @@ $(document).ready(function(){ plotSensorOverview(sensorname); } var plotSensorDetail = function(sensorname) { - $.getJSON("/sensor/"+escape(sensorname)+"/"+from+"/"+to, + $.getJSON("sensor/"+escape(sensorname)+"/"+from+"/"+to, function(response) { if (response['data']) { datasetDetail.push({'data':response['data'], @@ -57,7 +57,7 @@ $(document).ready(function(){ }); }; var plotSensorOverview = function(sensorname) { - $.getJSON("/sensor_cached/"+escape(sensorname)+"/"+fromOverview, //+"/"+to, + $.getJSON("sensor_cached/"+escape(sensorname)+"/"+fromOverview, //+"/"+to, function(response) { if (response['data']) { datasetOverview.push({'data':response['data'], @@ -96,4 +96,4 @@ $(document).ready(function(){ plotSensor("heizkreisregler10.betriebsdatenRegler1.kesselTemperatur"); plotSensor("feuerungsautomat1.betriebsdatenRegler1.aussenTemperatur"); // TODO http://people.iola.dk/olau/flot/examples/annotating.html -}); \ No newline at end of file +}); -- cgit v1.2.1