From: Mike Taylor Date: Wed, 5 Feb 2014 16:18:06 +0000 (+0000) Subject: my_onterm() made team-aware X-Git-Tag: 1.0.0~1515^2~10 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=1cf7757402c2edd03643afe3c379e222e2d960e7 my_onterm() made team-aware --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 9f6c7b2..0d5868e 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -309,12 +309,12 @@ function team($, teamName) { debug("term for " + teamName); // no facets if (!mkws_config.facets || mkws_config.facets.length == 0) { - $("#mkwsTermlists").hide(); + $(".mkwsTermlists.mkwsTeam_" + teamName).hide(); return; } // display if we first got results - $("#mkwsTermlists").show(); + $(".mkwsTermlists.mkwsTeam_" + teamName).show(); var acc = []; acc.push('
' + M('Termlists') + '
'); @@ -332,7 +332,7 @@ function team($, teamName) { } } - var termlist = $("#mkwsTermlists"); + var termlist = $(".mkwsTermlists.mkwsTeam_" + teamName); if (termlist) termlist.html(acc.join('')); }