summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2015-12-30 07:14:39 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2015-12-30 07:14:39 +0200
commit79bf1c91b03c4dc75c13284c989091508c90ad8b (patch)
tree5ae95c202ff8275c50736279bb0f380411393768 /web
parent6dd5e1ab92e842c20c43a8b6f1aa702bc75c0791 (diff)
fix for NETDATA.ready() synchronization
Diffstat (limited to 'web')
-rwxr-xr-xweb/index.html15
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
});
});