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:
85f601d
)
Move mkws.facetConfig down inside the Facet widget, the only one that uses it.
author
Mike Taylor
<mike@indexdata.com>
Mon, 7 Apr 2014 15:59:05 +0000
(16:59 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Mon, 7 Apr 2014 15:59:05 +0000
(16:59 +0100)
src/mkws-widget-termlists.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget-termlists.js
b/src/mkws-widget-termlists.js
index
4250f88
..
b8ed831
100644
(file)
--- a/
src/mkws-widget-termlists.js
+++ b/
src/mkws-widget-termlists.js
@@
-1,10
+1,3
@@
-mkws.facetConfig = {
- xtargets: [ "Sources", 16, false ],
- subject: [ "Subjects", 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;
@@
-19,6
+12,12
@@
mkws.registerWidgetType('Termlists', function() {
mkws.registerWidgetType('Facet', function() {
mkws.registerWidgetType('Facet', function() {
+ mkws.facetConfig = {
+ xtargets: [ "Sources", 16, false ],
+ subject: [ "Subjects", 10, true ],
+ author: [ "Authors", 10, true ]
+ }
+
var that = this;
var teamName = that.team.name();
var name = that.config.facet;
var that = this;
var teamName = that.team.name();
var name = that.config.facet;