我最近将v1.6.4更新为FullCalendar到v2.0.2,这样做导致我的revertFunc()
回调中的eventDrop
停止工作。
当我尝试在无效区域中删除事件时,它不会返回到原始位置,我收到此控制台错误:
Uncaught TypeError: object is not a function
这是我正在使用的代码:
eventDrop: function(event, dayDelta, minuteDelta, allDay, revertFunc)
{
var now = moment().format("HH:mm");
var eventStart = event.start.format("HH:mm");
if (eventStart < now)
{
showNotification("red", "Can not place appointments before the current time");
revertFunc();
}
else...
答案 0 :(得分:-2)
检查eventDrop
的{{3}},参数顺序已更改,这就是您的代码无效的原因:
function( event, delta, revertFunc, jsEvent, ui, view ) { }