| Issue 404: | Drag & Drop all day events | |
| 1 person starred this issue and may be notified of changes. | Back to list |
On the agenda day view, I can drag and drop events that are in the all day section. This would be fine, but when I drop it into the timeline event.end is empty. I was wondering if there is any way to accomplish any of the following: 1. Disable dragging for the events in the all day section 2. Limit the droppable area for events in the all day section to only the all day section. 3. Determine an appropriate end time for an event dragged from the all day section into the timeline. Your help is much appreciated.
Mar 30, 2010
#1
naunaud...@gmail.com
Mar 30, 2010
yeah, i'd do what naunaud suggested, and manually set the end date on drop. i'd make an [http://arshaw.com/fullcalendar/docs/event_data/updateEvent/ updateEvent] call within the [http://arshaw.com/fullcalendar/docs/event_ui/eventDrop/ eventDrop] callback when the end date is {{{null}}}
Status:
Done
Mar 30, 2010
null
Mar 31, 2010
Thanks, I'll give that a try.
Nov 18, 2011
Just to add on to to that. When an allDay event is dragged on to a timeline. The end date is null ,thats why the behaviour is so. So when an allDay event is dragged,the end date should be updated properly.I think we have to edit stop: function(ev, ui) in draggableDayEvent and include a check like
if(event.allDay==true &&dayDelta==0 && event.end==null) {
//update your end date
}
so that its is an all day event and it is dragged on to the same day timeline
|
|
| ► Sign in to add a comment |