Issue 1442: Select Callback Event revertFunc
Status:  Done
Owner: ----
Closed:  Aug 2013
Reported by Foz1284, Jun 17, 2012
When I Create an event and the select callback fires I make an ajax post to save to a database, if this fails for permission or other reasons I alert the user and want to undo the created event,

eventDrop callback has the revertFunc which can be called but i'm not sure how best to do this on select?

Thanks,

Mark
Jun 17, 2012
#1 Foz1284
I have found the solution to this,

I didn't realize the event is being created with the following code as I was using the example from: http://tux.fi/~jarnok/fullcalendar-resourceviews/

I just had to put this code in a conditional statement based on the result of the ajax request.

                            calendar.fullCalendar('renderEvent',
                            {
                                title: title,
                                start: start,
                                end: end,
                                allDay: allDay,
                                resource: resource.id
                            },
                            true // make the event "stick"
                        );


Aug 18, 2013
Project Member #2 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done