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
Loop separately for addSingleScaffold and makeSingleFacet
[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
cfb603a
..
135f322
100644
(file)
--- a/
src/mkws-widget-termlists.js
+++ b/
src/mkws-widget-termlists.js
@@
-31,6
+31,15
@@
mkws.registerWidgetType('Termlists', function() {
alert("bad facet configuration: '" + name + "'");
} else {
addSingleScaffold(acc, ref[0]);
alert("bad facet configuration: '" + name + "'");
} else {
addSingleScaffold(acc, ref[0]);
+ }
+ }
+
+ for (var i = 0; i < facets.length; i++) {
+ var name = facets[i]
+ var ref = facetConfig[name];
+ if (!ref) {
+ alert("bad facet configuration: '" + name + "'");
+ } else {
output[name] = makeSingleFacet(ref[0], data[name], ref[1], ref[2] ? name : null);
}
}
output[name] = makeSingleFacet(ref[0], data[name], ref[1], ref[2] ? name : null);
}
}