Fix updating recurring events
This commit is contained in:
parent
5caf7915a3
commit
0adb1c3912
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue