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");
}
if (node && node.length < 1) {
node = $(".mkws-template-" + name);
}
- if (node && node.length < 1) {
- node = $(".mkws-template_" + name + " .mkws-team-" + that.name());
- }
- if (node && node.length < 1) {
- node = $(".mkws-template_" + name);
- }
if (node) source = node.html();
if (!source) source = m_templateText[name];
if (source) {