Better fix for #880
This commit is contained in:
parent
ccd75c9ac1
commit
f078c46128
2 changed files with 2 additions and 1 deletions
|
@ -1157,6 +1157,7 @@ class calendar extends rcube_plugin
|
|||
}
|
||||
|
||||
return array(
|
||||
'_id' => $event['calendar'] . ':' . $event['id'], // unique identifier for fullcalendar
|
||||
'start' => $this->adjust_timezone($event['start'])->format('c'),
|
||||
'end' => $this->adjust_timezone($event['end'])->format('c'),
|
||||
'title' => strval($event['title']),
|
||||
|
|
|
@ -2006,7 +2006,7 @@ function rcube_calendar_ui(settings)
|
|||
var event = p.update;
|
||||
event.temp = false;
|
||||
event.editable = source.editable;
|
||||
var existing = fc.fullCalendar('clientEvents', function(e){ return (e.id == event.id && e.calendar == event.calendar); });
|
||||
var existing = fc.fullCalendar('clientEvents', event._id);
|
||||
if (existing.length) {
|
||||
$.extend(existing[0], event);
|
||||
fc.fullCalendar('updateEvent', existing[0]);
|
||||
|
|
Loading…
Add table
Reference in a new issue