aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js/RrdCmdLine.js
diff options
context:
space:
mode:
authorManuel Luis SanmartĂ­n Rozada2014-07-25 18:08:20 +0200
committerPim van den Berg2014-07-25 20:35:41 +0200
commit8e0483195c72b51850ea4c807a5aea380e4961aa (patch)
tree69fe972042e2b7b7b71711773802646b149c5103 /js/RrdCmdLine.js
parentjsrrdgraph: Fix flags parsing (options without a value) (diff)
downloadapt-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.js6
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)