X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-termlists.js;h=21810c69978e92dd491faa72d4e4f7c2d973de0a;hb=ebd0ddf06cecbd7a63dbddc39425001d9b2599e4;hp=e8cab105c6a4f9c6aa2e5cf54c49f4ef2565fde3;hpb=a28f2d2b6cc786098bf3e39b5f7d2a269d806309;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index e8cab10..21810c6 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -2,11 +2,11 @@ mkws.registerWidgetType('termlists', function() { // Initially hide the termlists; display when we get results var that = this; var team = this.team; - team.queue("termlists").subscribe(function(data) { + team.queue("facets").subscribe(function(data) { that.node.addClass("active"); }); - var template = team.loadTemplate(this.config.template || "Termlists"); + var template = team.loadTemplate(this.config.template || "termlists"); this.node.html(template({ team: team.name(), facets: this.config.facets @@ -33,7 +33,7 @@ mkws.registerWidgetType('facet', function() { return '[Widget ' + team.name() + ':' + that.type + '(' + name + ')]'; }; - team.queue("termlists").subscribe(function(data) { + team.queue("facets").subscribe(function(data) { data = data[name]; var terms = []; var teamName = team.name(); @@ -67,7 +67,7 @@ mkws.registerWidgetType('facet', function() { that.log("Using facet-" + name + " template.") } else { that.log("No " + name + " specific template, using default.") - template = team.loadTemplate("Facet"); + template = team.loadTemplate("facet"); } } that.node.html(template({