1
votes

I am still seeing "TypeError: revertFunc is not a function" when calling it from eventDrop with version 2.1:

                eventDrop: function( event, dayDelta, minuteDelta, allDay, revertFunc ) { //drag from one date to another - update ride

                    if(event.status && event.status.toString() == "C") {
                        revertFunc();   
                    }

I've checked all of the resources here and elsewhere for similar issues, but nothing seems to work. The bottom line is that it's funcitonally working (i.e. "reverting"), but obviously I would like not to throw an error.

1
Your argument list is wrong. See fullcalendar.io/docs/event_ui/eventDropDanielST
Thanks! There was a lot of competing argument list info out there.Brian R Parks

1 Answers

4
votes

Your argument list is wrong.

From the docs:

function( event, delta, revertFunc, jsEvent, ui, view ) {}