Reputation: 4301
I finally got the drag and drop deletion working. Now the problem is, when I delete an event, the deletion works fine, but after it keeps looping inside the eventDragStop and the calendar freezes up.
eventDragStop: function(event, jsEvent, ui, view) {
if (isElemOverDiv(ui.offset, '#event-delete')) {
$('#calendar').fullCalendar('removeEvents', event.id);
}
}
Upvotes: 0
Views: 608
Reputation: 11
I'm not sure if this is the right solution however I have solved the problem modifying fullcalendar.js as follows:
function eachEventElement(event, exceptElement, funcName) {
if(elements){
var elements = eventElementsByID[event._id],
i, len = elements.length;
for (i=0; i<len; i++) {
if (!exceptElement || elements[i][0] != exceptElement[0]) {
elements[i][funcName]();
}
}
}
}
Upvotes: 1