| Issue 346: | Ability to only show distinct events | |
| 1 person starred this issue and may be notified of changes. | Back to list |
I'm looking for a sane way to filter displayed events as the following:
A single event (id) is only displayed once, even when the same event exists
in two enabled data sources.
Use case:
- Events belong to an arbitrary number of groups
- Each group has its own event stream
- Multiple groups can be selected
My current workaround (disregarding repeating events) is patching
renderEvents (in Grid):
function renderEvents(events) {
var doneEvents = [];
var newEvents = [];
for (var i=0; i<events.length; ++i) {
if ($.inArray(events[i].id, doneEvents)>-1) {continue;} else {
doneEvents.push(events[i].id);
newEvents.push(events[i]);
}}
view.reportEvents(cachedEvents = newEvents);
renderSegs(compileSegs(newEvents));
}
Apr 26, 2010
Project Member
#1
adamrs...@gmail.com
Status:
Done
|
|
| ► Sign in to add a comment |