From: Mike Taylor Date: Mon, 7 Apr 2014 10:55:09 +0000 (+0100) Subject: Remove code to create termlist scaffolding: now in mkws-team.js X-Git-Tag: 1.0.0~1014 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=ee3953c2d2dcdec10648134bc75ae6fcf257e9b0;p=mkws-moved-to-github.git Remove code to create termlist scaffolding: now in mkws-team.js --- diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index b140198..ce801ec 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -3,27 +3,6 @@ mkws.registerWidgetType('Termlists', function() { var facets = that.config.facets; var M = mkws.M; - mkws.facetConfig = { - xtargets: [ "Sources", 16, false ], - subject: [ "Subjects", 10, true ], - author: [ "Authors", 10, true ] - } - - var acc = []; - acc.push('
' + M('Termlists') + '
'); - for (var i = 0; i < facets.length; i++) { - var name = facets[i] - var ref = mkws.facetConfig[name]; - if (!ref) { - alert("bad facet configuration: '" + name + "'"); - } else { - acc.push('
'); - acc.push('
'); - } - } - $(that.node).html(acc.join('')); - - this.team.queue("termlists").subscribe(function(data) { // display if we first got results $(that.node).show();