From: gregor herrmann Date: Wed, 3 Oct 2018 16:46:04 +0000 (+0200) Subject: loaddays: wrap .flush in a setTimeout X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/commitdiff_plain/8f767296cf0be759c6cccaaf7da9fde3e1fd1f85 loaddays: wrap .flush in a setTimeout depending on location and browser, I still see empty charts. --- diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index d763fdb..7e727a1 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -188,7 +188,7 @@ function loaddays(chart, element, days) { unload: true }); }; - chart.flush(); + setTimeout(function () { chart.flush(); }, 5000); } function beginend(days) {