Better fix for #880

This commit is contained in:
Thomas Bruederli 2012-07-17 14:07:04 +02:00
parent ccd75c9ac1
commit f078c46128
2 changed files with 2 additions and 1 deletions

View file

@ -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']),

View file

@ -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]);