From: Mike Taylor Date: Thu, 1 May 2014 14:01:00 +0000 (+0100) Subject: Widget facets now render (using toString) with the facet-name included. X-Git-Tag: 1.0.0~762 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=2202c0088025b972ef366e9139987298afdaccda;p=mkws-moved-to-github.git Widget facets now render (using toString) with the facet-name included. --- diff --git a/src/mkws-widget-termlists.js b/src/mkws-widget-termlists.js index 33d12b9..3ea68f5 100644 --- a/src/mkws-widget-termlists.js +++ b/src/mkws-widget-termlists.js @@ -35,6 +35,10 @@ mkws.registerWidgetType('Facet', function() { var max = ref[1]; var pzIndex = ref[2] ? name : null; + that.toString = function() { + return '[Widget ' + that.team.name() + ':' + that.type + '(' + name + ')]'; + }; + that.team.queue("termlists").subscribe(function(data) { data = data[name];