@cryptotaxi247 / netdata-1 / commits / 87ae8c438

disabled debugging

Costa Tsaousis (ktsaou) committed Dec 2, 2015 at 10:57 UTC 87ae8c438046bfec5bbe88abfb3b0f58034b2645
1 file changed +7 -10
web/dashboard.js
+7 -10
@@ -3,17 +3,14 @@
3 // var netdataStopDygraph = 1; // do not use dygraph
4 // var netdataStopSparkline = 1; // do not use sparkline
5 // var netdataStopPeity = 1; // do not use peity
6 +// var netdataStopGoogleCharts = 1; // do not use google
7 +// var netdataStopMorris = 1; // do not use morris
8 //
9 // You can also set the default netdata server, using the following.
10 // When this variable is not set, we assume the page is hosted on your
11 // netdata server already.
12 // var netdataServer = "http://yourhost:19999"; // set your NetData server
13
12 -// --------------------------------------------------------------------------------------------------------------------
13 -// For google charts you need this in your page:
14 -// <script type="text/javascript" src="https://www.google.com/jsapi"></script>
15 -// <script type='text/javascript'>google.load('visualization', '1.1', {'packages':['corechart', 'controls']});</script>
16 -
14 (function(window)
15 {
16 // fix IE bug with console
@@ -91,7 +88,7 @@
88 NETDATA.options = {
89 targets: null,
90 updated_dom: 1,
94 - debug: 1,
91 + debug: 0,
92 last_paused: 0,
93
94 current: {
@@ -314,7 +311,7 @@
311 }
312 }
313
317 - NETDATA.domUpdated = function(callback) {
314 + NETDATA.getDomCharts = function(callback) {
315 NETDATA.options.updated_dom = 0;
316
317 NETDATA.options.targets = $('div[data-netdata]').filter(':visible')
@@ -358,7 +355,7 @@
355
356 NETDATA.init = function() {
357 // this should be called only once
361 - NETDATA.domUpdated(function() {
358 + NETDATA.getDomCharts(function() {
359 NETDATA.chartRefresher(0);
360 });
361 }
@@ -440,7 +437,7 @@
437 now = new Date().getTime();
438
439 if(NETDATA.options.updated_dom) {
443 - NETDATA.domUpdated(function() {
440 + NETDATA.getDomCharts(function() {
441 NETDATA.chartRefresher(0);
442 });
443 }
@@ -493,7 +490,7 @@
490 }
491
492 // ----------------------------------------------------------------------------------------------------------------
496 - // piety
493 + // peity
494
495 NETDATA.peityInitialize = function(callback) {
496 if(typeof netdataStopPeity == 'undefined') {