diff options
author | Random Hacker <random_hacker@xapek.org> | 2011-12-11 01:17:48 +0100 |
---|---|---|
committer | Random Hacker <random_hacker@xapek.org> | 2011-12-11 01:17:48 +0100 |
commit | be57be260937f89c96bd02bac701b92cfe76184a (patch) | |
tree | 2cedd0fd98c1fdd5a40bf08e81be26c6662063a9 | |
parent | 225678ab99cb34ae1937bce13b22f2796cac1278 (diff) | |
download | ebus-alt-be57be260937f89c96bd02bac701b92cfe76184a.tar.gz ebus-alt-be57be260937f89c96bd02bac701b92cfe76184a.zip |
fix typo introduced by last commit
-rw-r--r-- | ebus/webapp/static/src/d3.control.js | 6 |
1 files changed, 3 insertions, 3 deletions
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 +}; |