My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 404: Drag & Drop all day events
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Mar 2010


Sign in to add a comment
 
Reported by JamesIArmes@gmail.com, Mar 16, 2010
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
For your third request, why don't you use the Date Object of JavaScript to increment
your start date by a generic amount of time you set when you drag your event?
Date manipulation can be a real PITA, though...
Ref: http://www.w3schools.com/jsref/jsref_obj_date.asp
Mar 30, 2010
Project Member #2 adamrs...@gmail.com
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
Project Member #3 adamrs...@gmail.com
null
Mar 31, 2010
#4 JamesIArmes@gmail.com
Thanks, I'll give that a try.
Nov 18, 2011
#8 rrohi...@gmail.com
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

Powered by Google Project Hosting