X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-team.js;h=43f2fbfefd62517011177d704cf8fc83397d9135;hb=79df7635c4cf890fdb06683a824d212b64a4a9bf;hp=57d7cf53fff4feed51cdb5373c4f2e68e4128dfe;hpb=a976b31dfa7a953d2a603a4ef126e5c0fdb101f3;p=mkws-moved-to-github.git diff --git a/src/mkws-team.js b/src/mkws-team.js index 57d7cf5..43f2fbf 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -122,7 +122,7 @@ mkws.makeTeam = function($, teamName) { function onTerm(data) { log("term"); - queue("termlists").publish(data); + queue("facets").publish(data); } function onShow(data, teamName) { @@ -172,7 +172,7 @@ mkws.makeTeam = function($, 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"); } @@ -438,12 +438,6 @@ mkws.makeTeam = function($, teamName) { 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) {