X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-facets.js;h=d7c7ffa384f73cdc9d53651956f842decb0958c3;hb=cb3027a4ef6f6cc32acd558f1a2585d14e223775;hp=fbf0e47ed9220555a787f7ed6cc9705b88f454f6;hpb=ffd01a4bec7a1e2b99317a1e856a75a3006ad119;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-facets.js b/src/mkws-widget-facets.js index fbf0e47..d7c7ffa 100644 --- a/src/mkws-widget-facets.js +++ b/src/mkws-widget-facets.js @@ -2,7 +2,14 @@ mkws.registerWidgetType('facets', function() { // Initially hide the facets; display when we get results var that = this; var team = this.team; + + this.team.queue("searchtriggered").subscribe(function() { + var op = that.config['newsearch_opacity']; + if (op !== undefined) { that.node.fadeTo(500, op); } + }); + team.queue("facets").subscribe(function(data) { + that.node.css('opacity', 1); that.node.addClass("active"); });