From 2202c0088025b972ef366e9139987298afdaccda Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 1 May 2014 15:01:00 +0100 Subject: [PATCH] Widget facets now render (using toString) with the facet-name included. --- src/mkws-widget-termlists.js | 4 ++++ 1 file changed, 4 insertions(+) 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]; -- 1.7.10.4