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:
ca687ae
)
Remove unnecessary check on facetConfig for Termlists widget.
author
Mike Taylor
<mike@indexdata.com>
Mon, 7 Apr 2014 15:58:33 +0000
(16:58 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Mon, 7 Apr 2014 15:58:33 +0000
(16:58 +0100)
src/mkws-widget-termlists.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget-termlists.js
b/src/mkws-widget-termlists.js
index
b035f4e
..
4250f88
100644
(file)
--- a/
src/mkws-widget-termlists.js
+++ b/
src/mkws-widget-termlists.js
@@
-4,6
+4,7
@@
mkws.facetConfig = {
author: [ "Authors", 10, true ]
}
+
mkws.registerWidgetType('Termlists', function() {
var that = this;
var facets = that.config.facets;
@@
-13,14
+14,6
@@
mkws.registerWidgetType('Termlists', function() {
$(that.node).show();
});
- for (var i = 0; i < facets.length; i++) {
- var name = facets[i]
- var ref = mkws.facetConfig[name];
- if (!ref) {
- alert("bad facet configuration: '" + name + "'");
- }
- }
-
widget.autosearch(that);
});