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:
6ddd7a0
)
Add default template for facets.
author
Mike Taylor
<mike@indexdata.com>
Tue, 10 Jun 2014 15:05:38 +0000
(16:05 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 10 Jun 2014 15:05:38 +0000
(16:05 +0100)
src/mkws-core.js
patch
|
blob
|
history
diff --git
a/src/mkws-core.js
b/src/mkws-core.js
index
7091291
..
325de02
100644
(file)
--- a/
src/mkws-core.js
+++ b/
src/mkws-core.js
@@
-259,6
+259,11
@@
mkws.defaultTemplate = function(name) {
<br/>\
</a>\
';
+ } else if (name === 'Facet') {
+ return '\
+<a href="#" onclick="mkws.{{fn}}(\'{{team}}\', \'{{field}}\', \'{{term}}\');return false;">{{term}}</a>\
+<span>{{count}}</span>\
+';
}
var s = "There is no default '" + name +"' template!";