Hello,
I’m using pro version.
I used customized form to add or edit event.
when an event is double clicked, it opens the form filled with the data.
It happens when I try to update one of recurring events.
I added a serial of events which happens everyday.
And I tried to change one of it
and new event was saved as new row and everything works great.
when ajax successfully returns new ID for the event.
I tried to change event id first for event updating.
for example, from ‘132#11112222333’ to ‘176’.
But it doesn’t work.
It just stays as is.
afterwards, I update event data and updateEvent(id); called.
without changing event id, it works great.
but I can’t change event id after updateEvent or before updateEvent either.
But when I tried change it after event in JS console, it works.
let me put some flow of my code
1.hooked up double click to open form
scheduler.attachEvent(“onDblClick”, function (id, e){
scheduler.showLightbox(id);
}
and I put my form into lightbox
-
when I click Update in the form, it calls ajax
$.ajax({ url: '/appointment/update', method: 'POST', dataType: 'json', data: f_data }).success(function(data) {
-
when success func is called
I tried to change recurring event’s id.
but not working.
I checked in console printing events by calling console.log(getEvent(id))
looks like it has not been changed at all.
by writing in console to change it.
it works.
Am I missing something here?
thanks