loaddays: wrap .flush in a setTimeout
authorgregor herrmann <gregor@toastfreeware.priv.at>
Wed, 3 Oct 2018 16:46:04 +0000 (18:46 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Wed, 3 Oct 2018 16:46:04 +0000 (18:46 +0200)
depending on location and browser, I still see empty charts.

web/static/seepark_web.js

index d763fdb624e95db1f33b4a39c66791c7f46e916a..7e727a1f0927b31351122c6f2a8c00f9ac289e77 100644 (file)
@@ -188,7 +188,7 @@ function loaddays(chart, element, days) {
                        unload: true
                });
        };
                        unload: true
                });
        };
-       chart.flush();
+       setTimeout(function () { chart.flush(); }, 5000);
 }
 
 function beginend(days) {
 }
 
 function beginend(days) {