From be57be260937f89c96bd02bac701b92cfe76184a Mon Sep 17 00:00:00 2001 From: Random Hacker Date: Sun, 11 Dec 2011 01:17:48 +0100 Subject: fix typo introduced by last commit --- ebus/webapp/static/src/d3.control.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ebus/webapp/static/src') diff --git a/ebus/webapp/static/src/d3.control.js b/ebus/webapp/static/src/d3.control.js index def7c65..124575b 100644 --- a/ebus/webapp/static/src/d3.control.js +++ b/ebus/webapp/static/src/d3.control.js @@ -30,12 +30,12 @@ d3_control.prototype = { d3.select(this).remove(); }); popup.append("div") - .text(sensor_name); + .text(options.sensor); var startdate = (new Date().getTime()/1000) - 7*60*60*24; var enddate = (new Date().getTime()/1000); var plot = d3.plot(popup); - d3.json("../sensor/"+sensor_name+"/" + startdate + "/" + enddate, + d3.json("../sensor/"+options.sensor+"/" + startdate + "/" + enddate, function(resp) { var data = resp.data.map(function(d) { return [new Date(d[0]), d[1]]; @@ -77,4 +77,4 @@ d3_control.prototype = { d3.control = function(element, svgurl, mapping) { return new d3_control(element,svgurl,mapping); -}; \ No newline at end of file +}; -- cgit v1.2.1