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:
4f4e9e4
)
Rename variable.
author
Mike Taylor
<mike@indexdata.com>
Tue, 10 Jun 2014 15:24:41 +0000
(16:24 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 10 Jun 2014 15:24:41 +0000
(16:24 +0100)
src/mkws-widget-termlists.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget-termlists.js
b/src/mkws-widget-termlists.js
index
4823d2c
..
3df2f60
100644
(file)
--- a/
src/mkws-widget-termlists.js
+++ b/
src/mkws-widget-termlists.js
@@
-48,19
+48,19
@@
mkws.registerWidgetType('Facet', function() {
var teamName = that.team.name();
for (var i = 0; i < data.length && i < max; i++) {
var teamName = that.team.name();
for (var i = 0; i < data.length && i < max; i++) {
- var fn, datum;
+ var fn, field;
// General case modifies the query; special case selects a target
if (pzIndex) {
// General case modifies the query; special case selects a target
if (pzIndex) {
- fn = 'limitQuery'; datum = pzIndex;
+ fn = 'limitQuery'; field = pzIndex;
} else if (!that.team.targetFiltered(data[i].id)) {
} else if (!that.team.targetFiltered(data[i].id)) {
- fn = 'limitTarget'; datum = data[i].id;
+ fn = 'limitTarget'; field = data[i].id;
}
var template = that.team.loadTemplate('Facet');
var s = template({
team: teamName,
fn: fn,
}
var template = that.team.loadTemplate('Facet');
var s = template({
team: teamName,
fn: fn,
- field: datum,
+ field: field,
term: data[i].name,
count: data[i].freq,
query: that.config.query
term: data[i].name,
count: data[i].freq,
query: that.config.query