// 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");
});
} else {
template = team.loadTemplate("facet-" + name);
if (template) {
- that.log("Using facet-" + name + " template.")
+ that.info("Using facet-" + name + " template.")
} else {
- that.log("No " + name + " specific template, using default.")
+ that.info("No " + name + " specific template, using default.")
template = team.loadTemplate("facet");
}
}
that.node.html(template({
name: name,
caption: caption,
- query: that.config.query,
terms: terms
}));
});