From: Jason Skomorowski Date: Mon, 4 Aug 2014 14:58:55 +0000 (-0400) Subject: Fix termlist templates. X-Git-Tag: 1.0.0~324^2~50 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=88601f8d8ed0c9dc6c095c13f02b15964f52f0e0;p=mkws-moved-to-github.git Fix termlist templates. --- diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index 294f3ff..8f6e467 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -11,7 +11,7 @@ mkws.registerWidgetType('Termlists', function() { var template = team.loadTemplate(this.config.template || "Termlists"); this.node.html(template({ - team: team, + team: team.name(), facets: this.config.facets })); this.autosearch(); diff --git a/src/mkws-widget-termlists.templates/Facet.handlebars b/src/mkws-widget-termlists.templates/Facet.handlebars index 520ce1d..621c9c1 100644 --- a/src/mkws-widget-termlists.templates/Facet.handlebars +++ b/src/mkws-widget-termlists.templates/Facet.handlebars @@ -12,6 +12,6 @@ terms:
{{caption}}
{{#each terms}}
- {{term}} {{count}} + {{term}} {{count}}
{{/each}} diff --git a/src/mkws-widget-termlists.templates/Termlists.handlebars b/src/mkws-widget-termlists.templates/Termlists.handlebars index 63865dc..7c6f3b8 100644 --- a/src/mkws-widget-termlists.templates/Termlists.handlebars +++ b/src/mkws-widget-termlists.templates/Termlists.handlebars @@ -7,5 +7,5 @@ facets - array of facet names
Termlists
{{#each facets}} -
+
{{/each}}