]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/static/seepark_web.js
deduplicate reloading; we already had an unused function for that
[chrisu/seepark.git] / web / static / seepark_web.js
index d02357590a2d39df15c073f9311ce5852fa4876c..2aad39b6c1505f9796decbad2abb53d85c46c241 100644 (file)
@@ -162,11 +162,7 @@ function dayschart(element, title, days, xtickformat) {
        // reload data in charts
        setInterval(
                function() {
-                       chart.load({
-                               url: api_base_url_sensors + beginend(days),
-                               mimeType: 'json'
-                       });
-                       chart.flush();
+                       loaddays(chart, element, days);
                },
                refresh_interval
        );