X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=src%2Fmkws-widget-facets.js;h=fbf0e47ed9220555a787f7ed6cc9705b88f454f6;hp=575a655a2218d6c436f0b8e1849f5b1536644572;hb=38168b75a739c506f0a8f03687cc2cd5c40f518a;hpb=485451520428bb06808cbec0ce2ece7e7b4dbbd3 diff --git a/src/mkws-widget-facets.js b/src/mkws-widget-facets.js index 575a655..fbf0e47 100644 --- a/src/mkws-widget-facets.js +++ b/src/mkws-widget-facets.js @@ -1,5 +1,5 @@ -mkws.registerWidgetType('termlists', function() { - // Initially hide the termlists; display when we get results +mkws.registerWidgetType('facets', function() { + // Initially hide the facets; display when we get results var that = this; var team = this.team; team.queue("facets").subscribe(function(data) { @@ -64,16 +64,15 @@ mkws.registerWidgetType('facet', function() { } else { template = team.loadTemplate("facet-" + name); if (template) { - that.log("Using facet-" + name + " template.") + that.info("Using facet-" + name + " template.") } else { - that.log("No " + name + " specific template, using default.") + that.info("No " + name + " specific template, using default.") template = team.loadTemplate("facet"); } } that.node.html(template({ name: name, caption: caption, - query: that.config.query, terms: terms })); });