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
update <title>
[mkws-moved-to-github.git]
/
src
/
mkws-widget-facets.js
diff --git
a/src/mkws-widget-facets.js
b/src/mkws-widget-facets.js
index
d2063f8
..
2eefb95
100644
(file)
--- a/
src/mkws-widget-facets.js
+++ b/
src/mkws-widget-facets.js
@@
-2,7
+2,14
@@
mkws.registerWidgetType('facets', function() {
// Initially hide the facets; display when we get results
var that = this;
var team = this.team;
// Initially hide the facets; display when we get results
var that = this;
var team = this.team;
+
+ this.team.queue("searchtriggered").subscribe(function() {
+ var op = that.config.newsearch_opacity;
+ if (op !== undefined) { that.node.fadeTo(500, op); }
+ });
+
team.queue("facets").subscribe(function(data) {
team.queue("facets").subscribe(function(data) {
+ that.node.css('opacity', 1);
that.node.addClass("active");
});
that.node.addClass("active");
});
@@
-56,10
+63,6
@@
mkws.registerWidgetType('facet', function() {
count: data[i].freq,
linkdata: linkdata
});
count: data[i].freq,
linkdata: linkdata
});
-
- if (!pzIndex) {
- team.mapTarget(data[i].id, data[i].name);
- }
}
// configured template > facet specific template > default facet template
var template;
}
// configured template > facet specific template > default facet template
var template;
@@
-77,7
+80,6
@@
mkws.registerWidgetType('facet', function() {
that.node.html(template({
name: name,
caption: caption,
that.node.html(template({
name: name,
caption: caption,
- query: that.config.query,
terms: terms
}));
});
terms: terms
}));
});