Use facet name instead of caption MKWS-298
authorJason Skomorowski <jason@indexdata.com>
Wed, 22 Oct 2014 14:21:49 +0000 (10:21 -0400)
committerJason Skomorowski <jason@indexdata.com>
Wed, 22 Oct 2014 14:21:49 +0000 (10:21 -0400)
src/mkws-widget-termlists.js

index 2e684f6..e8cab10 100644 (file)
@@ -62,11 +62,11 @@ mkws.registerWidgetType('facet', function() {
     if (that.config.template) {
       template = team.loadTemplate(that.config.template);
     } else {
-      template = team.loadTemplate("Facet-" + caption);
+      template = team.loadTemplate("facet-" + name);
       if (template) {
-        that.log("Using Facet-" + caption + " template.")
+        that.log("Using facet-" + name + " template.")
       } else {
-        that.log("No " + caption + " specific template, using default.")
+        that.log("No " + name + " specific template, using default.")
         template = team.loadTemplate("Facet");
       }
     }