Add as-yet-unused data-mkws-facet attribute to mkwsFacet elements.
authorMike Taylor <mike@indexdata.com>
Mon, 7 Apr 2014 15:26:07 +0000 (16:26 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 7 Apr 2014 15:26:07 +0000 (16:26 +0100)
src/mkws-team.js

index ee324aa..ee031c9 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 + '">');
+               acc.push('<div class="mkwsFacet' + ref[0] + ' mkwsFacet mkwsTeam_' + m_teamName + '" data-mkws-facet="' + ref[0] + '">');
                acc.push('</div>');
            }
        }