summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9291dd1)
falling back to the old hardwired (maybe translated) caption in the
common case when there is no such template. The template is invoked on
a data object that at present contains only the current query. This
provides the means to fix MKWS-214.
var teamName = that.team.name();
var acc = [];
var teamName = that.team.name();
var acc = [];
- acc.push('<div class="mkwsFacetTitle">' + mkws.M(caption) + '</div>');
+ var template = that.team.loadTemplate('facetTitle-' + caption, mkws.M(caption))
+ var title = template({ query: that.config.query });
+ acc.push('<div class="mkwsFacetTitle">' + title + '</div>');
for (var i = 0; i < data.length && i < max; i++) {
acc.push('<div class="mkwsTerm">');
acc.push('<a href="#" ');
for (var i = 0; i < data.length && i < max; i++) {
acc.push('<div class="mkwsTerm">');
acc.push('<a href="#" ');