2013-08-26 19 views

回答

0

绑定选项select到一个新的功能youFunction(回调)。在这个新的功能,您应该收到选定的日期参数,那么你就可以操作,并根据需要保存的事件。

$('#calendar').fullCalendar({ 
    // put your options and callbacks here 
    //... 
    select: yourFunction, 
    //... 
}); 

function yourFunction(startDate, endDate, allDay) { 
    //open your popover, manipulate the data and save the event. 
}