From 04c55285b15a39b6fd244508743cd0c66d4a59d8 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Fri, 18 Nov 2016 00:14:22 -0800 Subject: [PATCH] dim visualization during refresh --- superset/assets/javascripts/modules/superset.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/superset/assets/javascripts/modules/superset.js b/superset/assets/javascripts/modules/superset.js index 6d76a1d3f3841..86561c8effafc 100644 --- a/superset/assets/javascripts/modules/superset.js +++ b/superset/assets/javascripts/modules/superset.js @@ -123,6 +123,7 @@ const px = function () { clearInterval(timer); token.find('img.loading').hide(); + container.fadeTo(0.5, 1); container.show(); if (data !== undefined) { @@ -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); @@ -207,6 +209,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); @@ -216,6 +219,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();