aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/RrdCmdLine.js6
-rw-r--r--js/RrdGraph.js4
-rw-r--r--js/RrdJson.js8
3 files changed, 9 insertions, 9 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)
diff --git a/js/RrdGraph.js b/js/RrdGraph.js
index dfbbc07..cba141d 100644
--- a/js/RrdGraph.js
+++ b/js/RrdGraph.js
@@ -115,7 +115,7 @@ var RrdGraphDesc = function (graph)
115 this.tick.apply(this, args); 115 this.tick.apply(this, args);
116 break; 116 break;
117 case RrdGraphDesc.GF_TEXTALIGN: 117 case RrdGraphDesc.GF_TEXTALIGN:
118 this.textaling.apply(this, args); 118 this.textalign.apply(this, args);
119 break; 119 break;
120 case RrdGraphDesc.GF_DEF: 120 case RrdGraphDesc.GF_DEF:
121 this.def.apply(this, args); 121 this.def.apply(this, args);
@@ -2987,7 +2987,7 @@ RrdGraph.prototype.gdes_add_comment = function (text)
2987 2987
2988RrdGraph.prototype.gdes_add_textalign = function (align) 2988RrdGraph.prototype.gdes_add_textalign = function (align)
2989{ 2989{
2990 this.gdes.push(new RrdGraphDesc(this, RrdGraphDesc.GF_TEXTALING, align)); 2990 this.gdes.push(new RrdGraphDesc(this, RrdGraphDesc.GF_TEXTALIGN, align));
2991}; 2991};
2992 2992
2993RrdGraph.prototype.gdes_add_vrule = function (time, color, legend) 2993RrdGraph.prototype.gdes_add_vrule = function (time, color, legend)
diff --git a/js/RrdJson.js b/js/RrdJson.js
index 85b7f11..fcbf76b 100644
--- a/js/RrdJson.js
+++ b/js/RrdJson.js
@@ -271,16 +271,16 @@ RrdJson.prototype = {
271 case 'TEXTALIGN': 271 case 'TEXTALIGN':
272 switch (gdes[i].align) { 272 switch (gdes[i].align) {
273 case 'left': 273 case 'left':
274 this.graph.gdes_add_textaling(RrdGraphDesc.TXA_LEFT); 274 this.graph.gdes_add_textalign(RrdGraphDesc.TXA_LEFT);
275 break 275 break
276 case 'right': 276 case 'right':
277 this.graph.gdes_add_textaling(RrdGraphDesc.TXA_RIGHT); 277 this.graph.gdes_add_textalign(RrdGraphDesc.TXA_RIGHT);
278 break 278 break
279 case 'justified': 279 case 'justified':
280 this.graph.gdes_add_textaling(RrdGraphDesc.TXA_JUSTIFIED); 280 this.graph.gdes_add_textalign(RrdGraphDesc.TXA_JUSTIFIED);
281 break 281 break
282 case 'center': 282 case 'center':
283 this.graph.gdes_add_textaling(RrdGraphDesc.TXA_CENTER); 283 this.graph.gdes_add_textalign(RrdGraphDesc.TXA_CENTER);
284 break 284 break
285 } 285 }
286 break; 286 break;