diff options
| author | Pim van den Berg | 2013-05-13 21:18:33 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2013-05-13 21:30:21 +0200 |
| commit | d054c2ab17bb2ff9d24ffdfa24b031439ce1f85b (patch) | |
| tree | e9ab33c3a21d480454eef4d670855071b927e6bd /js | |
| parent | move width/heigth from plugins to type __construct (diff) | |
| download | apt-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
Diffstat (limited to 'js')
| -rw-r--r-- | js/RrdGraph.js | 2 |
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 | ||
