faster charts restoration on scroll
Costa Tsaousis (ktsaou) committed
Dec 29, 2015 at 04:44 UTC
304789e624574724182e39e563f222d66fd88b3b
1 file changed
+4
-4
web/dashboard.js
+4
-4
@@ -386,9 +386,9 @@
386
// hidden all the not-visible charts
387
// using this little function we try to switch
388
// the charts back to visible quickly
389
- //var targets = NETDATA.options.targets;
390
- //var len = targets.length;
391
- //while(len--) targets[len].isVisible();
389
+ var targets = NETDATA.options.targets;
390
+ var len = targets.length;
391
+ while(len--) targets[len].isVisible();
392
}
393
394
// ----------------------------------------------------------------------------------------------------------------
@@ -1158,9 +1158,9 @@
1158
if(typeof that.___chartIsHidden___ !== 'undefined') {
1159
that.element_chart.style.display = 'inline-block';
1160
if(that.element_legend !== null) that.element_legend.style.display = 'inline-block';
1161
- hideMessage();
1161
that.___chartIsHidden___ = undefined;
1162
resizeChart();
1163
+ hideMessage();
1164
}
1165
}
1166