X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=src%2Fmkws-widget-termlists.js;h=69d97a556d9818ecb154d085c8df3d4462d1bc49;hb=a442ae54ee85ce806e8b9c33b6e4845f7c7fde92;hp=0b6d6c0e13dcc0983ca3114566b2c952421bf1c8;hpb=5c464ebaabf6169481b587ad1e3fc119dcafafa9;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index 0b6d6c0..69d97a5 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -11,16 +11,10 @@ mkws.registerWidgetType('Termlists', function() { this.team.queue("termlists").subscribe(function(data) { // no facets: this should never happen var facets = that.config.facets; - if (!facets || facets.length == 0) { - alert("onTerm called even though we have no facets: " + $.toJSON(data)); - $(that.node).hide(); - return; - } // display if we first got results $(that.node).show(); - var acc = []; acc.push('