Skip to content

Commit

Permalink
dim visualization during refresh (#1636)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Nov 18, 2016
1 parent 8269321 commit b961c95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions superset/assets/javascripts/modules/superset.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const px = function () {

clearInterval(timer);
token.find('img.loading').hide();
container.fadeTo(0.5, 1);
container.show();

if (data !== undefined) {
Expand Down Expand Up @@ -153,6 +154,7 @@ const px = function () {
error(msg, xhr) {
let errorMsg = msg;
token.find('img.loading').hide();
container.fadeTo(0.5, 1);
let errHtml = '';
try {
const o = JSON.parse(msg);
Expand Down Expand Up @@ -210,6 +212,7 @@ const px = function () {
this.force = force;
}
token.find('img.loading').show();
container.fadeTo(0.5, 0.25);
container.css('height', this.height());
dttm = 0;
timer = setInterval(stopwatch, 10);
Expand All @@ -219,6 +222,7 @@ const px = function () {
},
resize() {
token.find('img.loading').show();
container.fadeTo(0.5, 0.25);
container.css('height', this.height());
this.viz.render();
this.viz.resize();
Expand Down

0 comments on commit b961c95

Please sign in to comment.