if (!ref) {
alert("bad facet configuration: '" + name + "'");
} else {
- output[name] = addSingleFacet(acc, ref[0], data[name], ref[1], ref[2] ? name : null);
+ addSingleScaffold(acc, ref[0], data[name], ref[1], ref[2] ? name : null);
+ output[name] = makeSingleFacet(acc, ref[0], data[name], ref[1], ref[2] ? name : null);
}
}
that.team.findnode('.mkwsFacet' + caption).html(output[name]);
}
- function addSingleFacet(acc, caption, data, max, pzIndex) {
+ function addSingleScaffold(acc, caption, data, max, pzIndex) {
var teamName = that.team.name();
acc.push('<div class="mkwsFacet mkwsFacet' + caption + ' mkwsTeam_' + teamName + '">');
+ acc.push('</div>');
+ }
+
+
+ function makeSingleFacet(acc, caption, data, max, pzIndex) {
+ var teamName = that.team.name();
var a2 = [];
a2.push('<div class="termtitle">' + M(caption) + '</div>');
+ ' <span>' + data[i].freq + '</span>');
a2.push('</div>');
}
- acc.push('</div>');
return a2.join('');
}
});