diff options
author | alisonjm <alisonjm> | 2011-04-21 20:44:55 +0000 |
---|---|---|
committer | alisonjm <alisonjm> | 2011-04-21 20:44:55 +0000 |
commit | 779fff169bc60c4a21ca1bd0ba03eca95f129e12 (patch) | |
tree | 88eedacbb6fe14e6cac9d7af14153adc33cb1a02 /src/lib | |
parent | c7544a25aa1b328c433c43b4f1a90a5127b2eb64 (diff) |
Added option to append aggregator name to DS name to avoid duplicates.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/rrdFlot.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/rrdFlot.js b/src/lib/rrdFlot.js index 6fbdc14..93d2000 100644 --- a/src/lib/rrdFlot.js +++ b/src/lib/rrdFlot.js @@ -203,7 +203,11 @@ rrdFlot.prototype.populateDScb = function() { cell_el=row_el.insertCell(-1);
}
var ds=this.rrd_file.getDS(i);
- var name=ds.getName();
+ if (this.rrdflot_defaults.multi_ds) { //null==false in boolean ops
+ var name=ds.getName()+"-"+ds.getType();
+ var name2=ds.getName();
+ }
+ else {var name=ds.getName();}
var title=name;
var checked=(i==0); // only first checked by default
if (this.ds_graph_options[name]!=null) {
@@ -224,7 +228,7 @@ rrdFlot.prototype.populateDScb = function() { var cb_el = document.createElement("input");
cb_el.type = "checkbox";
cb_el.name = "ds";
- cb_el.value = name;
+ cb_el.value = name2;
cb_el.checked = cb_el.defaultChecked = checked;
cell_el.appendChild(cb_el);
cell_el.appendChild(document.createTextNode(title));
|