diff options
author | Manuel Luis SanmartĂn Rozada | 2014-07-25 18:08:20 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-07-25 20:35:41 +0200 |
commit | 8e0483195c72b51850ea4c807a5aea380e4961aa (patch) | |
tree | 69fe972042e2b7b7b71711773802646b149c5103 /js/RrdCmdLine.js | |
parent | jsrrdgraph: Fix flags parsing (options without a value) (diff) | |
download | apt-panopticon_cgp-8e0483195c72b51850ea4c807a5aea380e4961aa.zip apt-panopticon_cgp-8e0483195c72b51850ea4c807a5aea380e4961aa.tar.gz apt-panopticon_cgp-8e0483195c72b51850ea4c807a5aea380e4961aa.tar.bz2 apt-panopticon_cgp-8e0483195c72b51850ea4c807a5aea380e4961aa.tar.xz |
jsrrdgraph: Fix textalign name typo. Thanks to Poil
Diffstat (limited to 'js/RrdCmdLine.js')
-rw-r--r-- | js/RrdCmdLine.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/RrdCmdLine.js b/js/RrdCmdLine.js index ab2910f..ceec693 100644 --- a/js/RrdCmdLine.js +++ b/js/RrdCmdLine.js | |||
@@ -69,7 +69,7 @@ RrdCmdLine.prototype = { | |||
69 | } else if (/^TICK:/.test(arg)) { | 69 | } else if (/^TICK:/.test(arg)) { |
70 | this.parse_tick(arg); | 70 | this.parse_tick(arg); |
71 | } else if (/^TEXTALIGN:/.test(arg)) { | 71 | } else if (/^TEXTALIGN:/.test(arg)) { |
72 | this.parse_textaling(arg); | 72 | this.parse_textalign(arg); |
73 | } else if (/^SHIFT:/.test(arg)) { | 73 | } else if (/^SHIFT:/.test(arg)) { |
74 | this.parse_shift(arg); | 74 | this.parse_shift(arg); |
75 | } else if (arg.charAt(0) === '-') { | 75 | } else if (arg.charAt(0) === '-') { |
@@ -488,10 +488,10 @@ RrdCmdLine.prototype = { | |||
488 | this.graph.gdes_add_comment(line.substr(index+1)); | 488 | this.graph.gdes_add_comment(line.substr(index+1)); |
489 | }, | 489 | }, |
490 | // TEXTALIGN:{left|right|justified|center} | 490 | // TEXTALIGN:{left|right|justified|center} |
491 | parse_textaling: function (line) | 491 | parse_textalign: function (line) |
492 | { | 492 | { |
493 | var index = line.indexOf(':'); | 493 | var index = line.indexOf(':'); |
494 | this.graph.gdes_add_textaling(line.substr(index+1)); | 494 | this.graph.gdes_add_textalign(line.substr(index+1)); |
495 | }, | 495 | }, |
496 | // VRULE:time#color[:legend][:dashes[=on_s[,off_s[,on_s,off_s]...]][:dash-offset=offset]] | 496 | // VRULE:time#color[:legend][:dashes[=on_s[,off_s[,on_s,off_s]...]][:dash-offset=offset]] |
497 | parse_vrule: function (line) | 497 | parse_vrule: function (line) |