Issue 1501: Order events on week view by event id, not time
Status:  Duplicate
Merged:  issue 364
Owner: ----
Closed:  Aug 2013
Reported by jennfer...@gmail.com, Aug 12, 2012
My fullcalendar (version 1.5.3) allows user to enter room bookings and catering events for conferences.  The catering events are the same id as the bookings, and on my server side I fill the JSON array for a day with:

e.g. booking1 9:00 - 11:00, booking 1 catering 11:00 - 11:30, booking 1 11:30 - 13:00.

If I have two bookings on the same day, with catering events at the same or overlapping times, the display becomes very confusing for the user becasue the events are shown by time and not by event.

I would like to keep the events for event 1 on the left of the day, booking 2 beside that, booking 3 beside that, to make the display more understandable.

Is this possible, or could it be an enhancement?

If enhancement, can you point me to where in the code I can make a change to make this happen in the meantime.

Jennifer
Aug 13, 2012
#1 jennfer...@gmail.com
Think I've figured out a way to do this.  In function segsCollide, I changed the collision test to base on event id rather than event start and end.  Seems to work.  

Here's the code:

function segsCollide(seg1, seg2) {
	//return seg1.end > seg2.start && seg1.start < seg2.end;   

	return seg1.event.id != seg2.event.id;
}


Aug 15, 2013
Project Member #2 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 364