I use Fullcalendar with events (received by ajax call).
When I click on a slot I save an event in the database. After that I click on the "Next" or "Prev" buttons. At that moment I want to render my saved event on the calendar, but I can't. It doesn't work this way:
var resEvent = JSON.parse(reservedEvent.val());
$('#calendarContainer').fullCalendar('removeEvents', resEvent.id);
$('#calendarContainer').fullCalendar('renderEvent', resEvent);
The ID of the event was changed, and I have 2 events on one slot now. Could you please advise me of possible solutions?