data-mkws-facet is now set of the index's name, not its caption.
authorMike Taylor <mike@indexdata.com>
Mon, 7 Apr 2014 15:51:30 +0000 (16:51 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 7 Apr 2014 15:51:30 +0000 (16:51 +0100)
src/mkws-team.js

index ee031c9..7f28c1b 100644 (file)
@@ -442,7 +442,7 @@ function team($, teamName) {
            if (!ref) {
                alert("bad facet configuration: '" + name + "'");
            } else {
-               acc.push('<div class="mkwsFacet' + ref[0] + ' mkwsFacet mkwsTeam_' + m_teamName + '" data-mkws-facet="' + ref[0] + '">');
+               acc.push('<div class="mkwsFacet' + ref[0] + ' mkwsFacet mkwsTeam_' + m_teamName + '" data-mkws-facet="' + name + '">');
                acc.push('</div>');
            }
        }