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:
c0fa14a
)
Pass query and "field" to termlist widget MKWS-284
author
Jason Skomorowski
<jason@indexdata.com>
Thu, 9 Oct 2014 19:02:28 +0000
(15:02 -0400)
committer
Jason Skomorowski
<jason@indexdata.com>
Thu, 9 Oct 2014 19:02:28 +0000
(15:02 -0400)
src/mkws-widget-termlists.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget-termlists.js
b/src/mkws-widget-termlists.js
index
43737c1
..
4052251
100644
(file)
--- a/
src/mkws-widget-termlists.js
+++ b/
src/mkws-widget-termlists.js
@@
-52,6
+52,7
@@
mkws.registerWidgetType('Facet', function() {
linkdata += 'onclick="' + action + ';return false;"';
terms.push({
term: data[i].name,
+ field: data[i].id,
count: data[i].freq,
linkdata: linkdata
});
@@
-72,6
+73,7
@@
mkws.registerWidgetType('Facet', function() {
that.node.html(template({
name: name,
caption: caption,
+ query: that.config.query,
terms: terms
}));
});