projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unnecessary check on facetConfig for Termlists widget.
[mkws-moved-to-github.git]
/
src
/
mkws-widget-termlists.js
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 ]
}
author: [ "Authors", 10, true ]
}
+
mkws.registerWidgetType('Termlists', function() {
var that = this;
var facets = that.config.facets;
mkws.registerWidgetType('Termlists', function() {
var that = this;
var facets = that.config.facets;
@@
-13,14
+14,6
@@
mkws.registerWidgetType('Termlists', function() {
$(that.node).show();
});
$(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);
});
widget.autosearch(that);
});