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
the "mkws-paragraphs" Handlebars helper now accepts an optional second
[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
addfd94
..
b16d60c
100644
(file)
--- a/
src/mkws-widget-termlists.js
+++ b/
src/mkws-widget-termlists.js
@@
-17,7
+17,7
@@
mkws.registerWidgetType('Termlists', function() {
}
this.node.html(acc.join(''));
}
this.node.html(acc.join(''));
- widget.autosearch(this);
+ this.autosearch();
});
});
@@
-30,9
+30,9
@@
mkws.registerWidgetType('Facet', function() {
var that = this;
var name = that.config.facet;
var that = this;
var name = that.config.facet;
- var ref = facetConfig[name] || alert("no facet definition for '" + name + "'");
- var caption = ref[0];
- var max = ref[1];
+ var ref = facetConfig[name] || [ "Unknown", 10, true ];
+ var caption = this.config['facet_caption_' + name] || ref[0];
+ var max = parseInt(this.config['facet_max_' + name] || ref[1]);
var pzIndex = ref[2] ? name : null;
that.toString = function() {
var pzIndex = ref[2] ? name : null;
that.toString = function() {