aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPim van den Berg2013-05-13 21:18:33 +0200
committerPim van den Berg2013-05-13 21:30:21 +0200
commitd054c2ab17bb2ff9d24ffdfa24b031439ce1f85b (patch)
treee9ab33c3a21d480454eef4d670855071b927e6bd
parentmove width/heigth from plugins to type __construct (diff)
downloadapt-panopticon_cgp-d054c2ab17bb2ff9d24ffdfa24b031439ce1f85b.zip
apt-panopticon_cgp-d054c2ab17bb2ff9d24ffdfa24b031439ce1f85b.tar.gz
apt-panopticon_cgp-d054c2ab17bb2ff9d24ffdfa24b031439ce1f85b.tar.bz2
apt-panopticon_cgp-d054c2ab17bb2ff9d24ffdfa24b031439ce1f85b.tar.xz
jsrrdgraph: RrdGraph.js: fix undefined 2nd argument of RrdVdef function
This fixes this error: > TypeError: Cannot call method 'indexOf' of undefined at new RrdVdef
-rw-r--r--js/RrdGraph.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/RrdGraph.js b/js/RrdGraph.js
index 9b8e3db..6bd75c9 100644
--- a/js/RrdGraph.js
+++ b/js/RrdGraph.js
@@ -249,7 +249,7 @@ RrdGraphDesc.prototype.vdef = function (graph, vname, rpn)
249 if (graph.gdes[this.vidx].gf != RrdGraphDesc.GF_DEF && graph.gdes[this.vidx].gf != RrdGraphDesc.GF_CDEF) { 249 if (graph.gdes[this.vidx].gf != RrdGraphDesc.GF_DEF && graph.gdes[this.vidx].gf != RrdGraphDesc.GF_CDEF) {
250 throw new RrdGraphDescError('variable "'+name+'" not DEF nor CDEF in VDEF.'); 250 throw new RrdGraphDescError('variable "'+name+'" not DEF nor CDEF in VDEF.');
251 } 251 }
252 this.vf = new RrdVdef(rpn.substring(index+1)); 252 this.vf = new RrdVdef(name, rpn.substring(index+1));
253 this.legend = ''; 253 this.legend = '';
254}; 254};
255 255