My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 346: Ability to only show distinct events
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Apr 2010


Sign in to add a comment
 
Reported by nicodiet...@gmail.com, Feb 15, 2010
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
i understand the utility of what your are proposing, but i feel it is a little too 
application-specific to include in a release. your best bet, using the features of the 
current official release, would be to manually fetch ajax events from multiple places 
and filter them in a custom events function 
(http://arshaw.com/fullcalendar/docs/event_data/events_function/)
Status: Done
Sign in to add a comment

Powered by Google Project Hosting