From bc2d7408d42b07d00924082cb719a44ff1175e4e Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 4 Apr 2014 17:07:33 +0100 Subject: [PATCH] Put facetConfig into the mkws object. --- src/mkws-widget-termlists.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index db36c66..b140198 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -3,7 +3,7 @@ mkws.registerWidgetType('Termlists', function() { var facets = that.config.facets; var M = mkws.M; - var facetConfig = { + mkws.facetConfig = { xtargets: [ "Sources", 16, false ], subject: [ "Subjects", 10, true ], author: [ "Authors", 10, true ] @@ -13,7 +13,7 @@ mkws.registerWidgetType('Termlists', function() { acc.push('
' + M('Termlists') + '
'); for (var i = 0; i < facets.length; i++) { var name = facets[i] - var ref = facetConfig[name]; + var ref = mkws.facetConfig[name]; if (!ref) { alert("bad facet configuration: '" + name + "'"); } else { @@ -30,7 +30,7 @@ mkws.registerWidgetType('Termlists', function() { for (var i = 0; i < facets.length; i++) { var name = facets[i] - var ref = facetConfig[name]; + var ref = mkws.facetConfig[name]; var caption = ref[0]; if (!ref) { alert("bad facet configuration: '" + name + "'"); -- 1.7.10.4