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:
5c464eb
)
Remove unnecessary check.
author
Mike Taylor
<mike@indexdata.com>
Fri, 4 Apr 2014 15:49:44 +0000
(16:49 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Fri, 4 Apr 2014 15:49:44 +0000
(16:49 +0100)
src/mkws-widget-termlists.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget-termlists.js
b/src/mkws-widget-termlists.js
index
0b6d6c0
..
69d97a5
100644
(file)
--- a/
src/mkws-widget-termlists.js
+++ b/
src/mkws-widget-termlists.js
@@
-11,16
+11,10
@@
mkws.registerWidgetType('Termlists', function() {
this.team.queue("termlists").subscribe(function(data) {
// no facets: this should never happen
var facets = that.config.facets;
this.team.queue("termlists").subscribe(function(data) {
// no facets: this should never happen
var facets = that.config.facets;
- if (!facets || facets.length == 0) {
- alert("onTerm called even though we have no facets: " + $.toJSON(data));
- $(that.node).hide();
- return;
- }
// display if we first got results
$(that.node).show();
// display if we first got results
$(that.node).show();
-
var acc = [];
acc.push('<div class="title">' + M('Termlists') + '</div>');
for (var i = 0; i < facets.length; i++) {
var acc = [];
acc.push('<div class="title">' + M('Termlists') + '</div>');
for (var i = 0; i < facets.length; i++) {