From 88601f8d8ed0c9dc6c095c13f02b15964f52f0e0 Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Mon, 4 Aug 2014 10:58:55 -0400 Subject: [PATCH] Fix termlist templates. --- src/mkws-widget-termlists.js | 2 +- src/mkws-widget-termlists.templates/Facet.handlebars | 2 +- src/mkws-widget-termlists.templates/Termlists.handlebars | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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}} -- 1.7.10.4