aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorManuel Luis SanmartĂ­n Rozada2014-01-09 00:41:48 +0100
committerPim van den Berg2014-01-12 14:35:02 +0100
commitb517ceaaafa1ddce9ae60d5c7a345add7c7c6861 (patch)
treede20dbb578475319fb3a62a61d622099440578e8
parentjsrrdgraph: RrdGraph.js: Add RrdGraph.prototype.graph_paint_async method (diff)
downloadapt-panopticon_cgp-b517ceaaafa1ddce9ae60d5c7a345add7c7c6861.zip
apt-panopticon_cgp-b517ceaaafa1ddce9ae60d5c7a345add7c7c6861.tar.gz
apt-panopticon_cgp-b517ceaaafa1ddce9ae60d5c7a345add7c7c6861.tar.bz2
apt-panopticon_cgp-b517ceaaafa1ddce9ae60d5c7a345add7c7c6861.tar.xz
jsrrdgraph: Change alter for thow
-rw-r--r--js/RrdGraph.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/RrdGraph.js b/js/RrdGraph.js
index 8794888..40d70da 100644
--- a/js/RrdGraph.js
+++ b/js/RrdGraph.js
@@ -1367,10 +1367,8 @@ RrdGraph.prototype.data_fetch_async_callback = function (args, ft_step)
1367 } 1367 }
1368 } 1368 }
1369 1369
1370 if (that.gdes[i].ds === -1) { 1370 if (that.gdes[i].ds === -1)
1371 alert("No DS called '"+that.gdes[i].ds_nam+"' in '"+that.gdes[i].rrd+"'"); 1371 throw new RrdGraphError("No DS called '"+that.gdes[i].ds_nam+"' in '"+that.gdes[i].rrd+"'");
1372 return;
1373 }
1374 } 1372 }
1375 that.graph_paint_draw(); 1373 that.graph_paint_draw();
1376}; 1374};