Periodically update the slices in the dashboard (#374)

* Periodically update the slices in the dashboard

* Make the refresh interval changeable

* Add the button and the modal for the user to change the refresh interval

* Don't use callback for refreshing

* Randomize to prevent all widgets refreshing at the same time

* Show the loading icon as an overlay when the slices refresh
This commit is contained in:
x4base
2016-04-20 17:35:07 -07:00
committed by Maxime Beauchemin
parent 9a33557112
commit d8a2b621d8
7 changed files with 174 additions and 104 deletions

View File

@@ -314,8 +314,6 @@ var px = (function () {
}
this.force = force;
token.find("img.loading").show();
container.hide();
container.html('');
container.css('height', slice.height());
dttm = 0;
timer = setInterval(stopwatch, 10);
@@ -325,9 +323,7 @@ var px = (function () {
},
resize: function () {
token.find("img.loading").show();
container.hide();
container.css('height', slice.height());
container.html('');
this.viz.render();
this.viz.resize();
},