Is it possible to use both eventDrop and drop in fullCalendar
. I'm using fullCalendar plugin. I want to update some records when an event dropped onto a calendar and whenever a events changed from one day to another day. I've tried like below:
$('#calendar').fullCalendar({
header: {
left: 'prev,next, today',
center: 'title',
right: 'prevYear,nextYear '
},
editable: true,
viewRender: function(view, element) {
$('.fc-center')[0].children[0].innerText = view.title.replace(new RegExp("undefined", 'g'), "");
},
eventDrop: function( event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view ) {
alert(event.start.format());
}
drop: function(date, allDay, event) {
alert(date.format());
}
});
What am i missing? I'm not able use both eventDrop
and Drop