function onTerm(data) {
log("term");
- queue("termlists").publish(data);
+ queue("facets").publish(data);
}
function onShow(data, teamName) {
params.onstat = onStat;
log("setting stat callback");
}
- if (m_queues.termlists && config.facets.length) {
+ if (m_queues.facets && config.facets.length) {
params.onterm = onTerm;
log("setting term callback");
}
// Initially hide the termlists; display when we get results
var that = this;
var team = this.team;
- team.queue("termlists").subscribe(function(data) {
+ team.queue("facets").subscribe(function(data) {
that.node.addClass("active");
});
return '[Widget ' + team.name() + ':' + that.type + '(' + name + ')]';
};
- team.queue("termlists").subscribe(function(data) {
+ team.queue("facets").subscribe(function(data) {
data = data[name];
var terms = [];
var teamName = team.name();