I used eventResize to post updates to a database via zend.
with eventResize, it shows revertFunc is not a function.
here is my code:
eventResize:function(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view ){
if(dayDelta==0)
{
postObject = new Object;
postObject.id = event.id;
postObject.start = String(event.start);
postObject.end = String(event.end);
$.post(basePath+"default/mine/calendarupdate",postObject,function(feedback){
if(feedback)
{ window.location.href=window.location.href;
}else{
alert("error");
}},'json');
else{
revertFunc();
}
},
here are the js i used:
$this->view->headScript()->appendFile(Zend_Registry::get("base_server")."js/jquery-1.5.2.min.js");
$this->view->headScript()->appendFile(Zend_Registry::get("base_server")."js/jquery-ui-1.8.11.min.js");
Thanks in advance
you have parameters wrong... function( event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, view ) { } http://arshaw.com/fullcalendar/docs/event_ui/eventResize/