My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1040: revertFunc issue
2 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2011


Sign in to add a comment
 
Reported by cs3p...@googlemail.com, Jul 20, 2011
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


Aug 21, 2011
Project Member #1 adamrs...@gmail.com
you have parameters wrong...

function( event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, view ) { }

http://arshaw.com/fullcalendar/docs/event_ui/eventResize/
Status: Done
Sign in to add a comment

Powered by Google Project Hosting