summaryrefslogtreecommitdiff
path: root/src/examples/rrdJFlot.html
diff options
context:
space:
mode:
authorIgor Sfiligoi <isfiligoi@ucsd.edu>2013-11-06 18:55:33 +0000
committerIgor Sfiligoi <isfiligoi@ucsd.edu>2013-11-06 18:55:33 +0000
commit1564f98b1af53eba2c46711e83ccf58452a131c5 (patch)
tree52edd4b175d2d5fbe6376c42dca6b20b5a59f888 /src/examples/rrdJFlot.html
parentfe45daf55054704153ab9ed82a87a2a033f9b595 (diff)
Minor code cleanup
Diffstat (limited to 'src/examples/rrdJFlot.html')
-rw-r--r--src/examples/rrdJFlot.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/examples/rrdJFlot.html b/src/examples/rrdJFlot.html
index c3b21fd..32dd9eb 100644
--- a/src/examples/rrdJFlot.html
+++ b/src/examples/rrdJFlot.html
@@ -50,10 +50,6 @@
// Remove the Javascript warning
document.getElementById("infotable").deleteRow(0);
- // fname and rrd_data are the global variable used by all the functions below
- fname=document.getElementById("input_fname").value;
- rrd_data=undefined;
-
var graph_opts={legend: { noColumns:4}};
var ds_graph_opts={'Oscilator':{ color: "#ff8000",
lines: { show: true, fill: true, fillColor:"#ffff80"} },
@@ -65,7 +61,7 @@
// this function is invoked when the RRD file name changes
function fname_update() {
- fname=document.getElementById("input_fname").value;
+ var fname=document.getElementById("input_fname").value;
flot_obj.reload(fname);
document.getElementById("fname").firstChild.data=fname;
}