projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0e8f814
)
Widget facets now render (using toString) with the facet-name included.
author
Mike Taylor
<mike@indexdata.com>
Thu, 1 May 2014 14:01:00 +0000
(15:01 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 1 May 2014 14:01:00 +0000
(15:01 +0100)
src/mkws-widget-termlists.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget-termlists.js
b/src/mkws-widget-termlists.js
index
33d12b9
..
3ea68f5
100644
(file)
--- 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;
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];
that.team.queue("termlists").subscribe(function(data) {
data = data[name];