Fix updating recurring events

This commit is contained in:
Thomas Bruederli 2013-10-22 09:54:15 +02:00
parent 5caf7915a3
commit 0adb1c3912

View file

@ -2076,6 +2076,9 @@ function rcube_calendar_ui(settings)
if (existing.length) {
$.extend(existing[0], event);
fc.fullCalendar('updateEvent', existing[0]);
// remove old recurrence instances
if (event.recurrence && !event.recurrence_id)
fc.fullCalendar('removeEvents', function(e){ return e._id.indexOf(event._id+'-') == 0; });
}
else {
event.source = source; // link with source