Issue 1755: revertFunc on eventDrop delete the event
Status:  Done
Owner: ----
Closed:  Aug 2013
Reported by g.vanden...@gmail.com, Mar 26, 2013
As said in the title, when i use the revertFunc method, my event simply delete the event from the DOM (not in the DB).

Am i doing something not correctly?

Extract (just to reproduce, the real code is adding in the DB but this simple code produce the bug, i have commented all others lines of code to be sure): 
eventDrop: function( event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent) 
{
    revertFunc();
}

Version of FC: 1.5.2


Thanks in advance for your answers ;)
Apr 5, 2013
#1 g.vanden...@gmail.com
I dodge the problem using the update function with the original values like:

eventDrop: function( event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent) 
{
    event.start = new Date(new XDate(event.start).addDays(-dayDelta));
    event.end = event.start;
    $('#calendar').fullCalendar('updateEvent', event);
}

Hope this can help someone else ;)
Aug 24, 2013
Project Member #2 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done