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 (from parent 1:
bd54409
)
Invert logic.
author
Mike Taylor
<mike@indexdata.com>
Tue, 10 Jun 2014 12:02:22 +0000
(13:02 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 10 Jun 2014 12:02:22 +0000
(13:02 +0100)
src/mkws-widget-termlists.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget-termlists.js
b/src/mkws-widget-termlists.js
index
467ff9d
..
c0dd474
100644
(file)
--- a/
src/mkws-widget-termlists.js
+++ b/
src/mkws-widget-termlists.js
@@
-51,13
+51,13
@@
mkws.registerWidgetType('Facet', function() {
acc.push('<div class="mkwsTerm">');
acc.push('<a href="#" ');
var action = '';
acc.push('<div class="mkwsTerm">');
acc.push('<a href="#" ');
var action = '';
- if (!pzIndex) {
+ if (pzIndex) {
+ action = 'mkws.limitQuery(\'' + teamName + '\', \'' + pzIndex + '\', this.firstChild.nodeValue)';
+ } else {
// Special case: target selection
if (!that.team.targetFiltered(data[i].id)) {
action = 'mkws.limitTarget(\'' + teamName + '\', \'' + data[i].id + '\', this.firstChild.nodeValue)';
}
// Special case: target selection
if (!that.team.targetFiltered(data[i].id)) {
action = 'mkws.limitTarget(\'' + teamName + '\', \'' + data[i].id + '\', this.firstChild.nodeValue)';
}
- } else {
- action = 'mkws.limitQuery(\'' + teamName + '\', \'' + pzIndex + '\', this.firstChild.nodeValue)';
}
acc.push('onclick="' + action + ';return false;">' + data[i].name + '</a>'
+ ' <span>' + data[i].freq + '</span>');
}
acc.push('onclick="' + action + ';return false;">' + data[i].name + '</a>'
+ ' <span>' + data[i].freq + '</span>');