From: Mike Taylor Date: Fri, 1 May 2015 10:35:04 +0000 (+0100) Subject: Fix MKWS-383, I hope. X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=41cc47ee71bbd6dd4882b51403a865c7863ab971;p=mkws-moved-to-github.git Fix MKWS-383, I hope. Before setting opacity of newly-active facets and records widgets to 100%, stop any existing animation, namely the fadeTo that is making them transparent. I think a race condition was resulting in them sometimes remaining invisible after a new search was triggered. --- diff --git a/src/mkws-widget-facets.js b/src/mkws-widget-facets.js index 2eefb95..04f6dc6 100644 --- a/src/mkws-widget-facets.js +++ b/src/mkws-widget-facets.js @@ -9,6 +9,7 @@ mkws.registerWidgetType('facets', function() { }); team.queue("facets").subscribe(function(data) { + that.node.stop(); that.node.css('opacity', 1); that.node.addClass("active"); }); diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 5ce127d..f32e736 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -121,6 +121,7 @@ mkws.registerWidgetType('records', function() { var m_dataToRedraw = null; function refreshRecordData() { + that.node.stop(); that.node.css('opacity', 1); if (m_dataToRedraw) {