From 41cc47ee71bbd6dd4882b51403a865c7863ab971 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 1 May 2015 11:35:04 +0100 Subject: [PATCH] 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. --- src/mkws-widget-facets.js | 1 + src/mkws-widget-main.js | 1 + 2 files changed, 2 insertions(+) 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) { -- 1.7.10.4