Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fullcalendar refetch events callback

Currently using fullcalendar.io

In the documentation, it has calendar.fullCalendar('refetchEvents') that refetch all the events from the server.

In short, I want calendar.fullCalendar('refetchEvents') request to be completed and send me back a callback to let me know. I want all the events to be downloaded before i proceed with certain tasks.

How can i do that?

like image 405
ove Avatar asked Dec 26 '22 00:12

ove


1 Answers

Solved it by doing refetch events after a successful http post as below

  Service.insert(event).
            success(function (data, status, headers, config) {

                calendar.fullCalendar('refetchEvents');

            }).
            error(function(data, status, headers, config) {
                alert('error');
            });
like image 110
ove Avatar answered Dec 27 '22 15:12

ove