| Issue 1755: | revertFunc on eventDrop delete the event | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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 ;)
Aug 24, 2013
(No comment was entered for this change.)
Status:
Done
|
|
| ► Sign in to add a comment |
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 ;)