The facets and records widgets now interpret a new 'new-search-opacity' configuration setting. If it's defined, then it's an opacity in the range 0.0 (transparent) to 1.0 (opaque), and the widget fades to that opacity when a new search is submitted (reverting to full opacity when data arrives).
// 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['new-search-opacity'];
+ if (op !== undefined) { that.node.fadeTo(500, op); }
+ });
+
team.queue("facets").subscribe(function(data) {
+ that.node.css('opacity', 1);
that.node.addClass("active");
});
var that = this;
var team = this.team;
+ this.team.queue("searchtriggered").subscribe(function() {
+ var op = that.config['new-search-opacity'];
+ if (op !== undefined) { that.node.fadeTo(500, op); }
+ });
+
this.team.queue("records").subscribe(function(data) {
+ that.node.css('opacity', 1);
for (var i = 0; i < data.hits.length; i++) {
var hit = data.hits[i];
hit.detailLinkId = team.recordElementId(hit.recid[0]);