diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-12-30 07:14:39 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-12-30 07:14:39 +0200 |
commit | 79bf1c91b03c4dc75c13284c989091508c90ad8b (patch) | |
tree | 5ae95c202ff8275c50736279bb0f380411393768 /web | |
parent | 6dd5e1ab92e842c20c43a8b6f1aa702bc75c0791 (diff) |
fix for NETDATA.ready() synchronization
Diffstat (limited to 'web')
-rwxr-xr-x | web/index.html | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/web/index.html b/web/index.html index 37f16e0f51..d40bbd993d 100755 --- a/web/index.html +++ b/web/index.html @@ -253,7 +253,7 @@ <!-- <script> netdataServer = "http://box:19999"; </script> --> <!-- load the dashboard manager - it will do the rest --> - <script type="text/javascript" src="dashboard.js?v12"></script> + <script type="text/javascript" src="dashboard.js?v14"></script> </head> <body data-spy="scroll" data-target="#sidebar"> @@ -1079,7 +1079,7 @@ function prepareScreen(data) { }, 1000); } -NETDATA.ready(function() { +NETDATA.pause(function() { $('#welcomeModal').on('hidden.bs.modal', function (e) { NETDATA.updatedDom(); @@ -1091,13 +1091,12 @@ NETDATA.ready(function() { // download all the charts the server knows NETDATA.chartRegistry.downloadAll(NETDATA.serverDefault, function(data) { - // pause the NETDATA thread that updates the charts - NETDATA.pause(function() { + // prepare our DOM + // this will be called when NETDATA is paused + prepareScreen(data); - // prepare our DOM - // this will be called when NETDATA is paused - prepareScreen(data); - }); + // due to affix issues, prepareScreen() will unpause + // netdata as needed }); }); |