summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/calendar/calendar.php1
-rw-r--r--plugins/calendar/calendar_ui.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php
index f079746..8c815dd 100644
--- a/plugins/calendar/calendar.php
+++ b/plugins/calendar/calendar.php
@@ -1059,6 +1059,7 @@ class calendar extends rcube_plugin
$event['recurrence_text'] = $this->_recurrence_text($event['recurrence']);
return array(
+ '_id' => $event['calendar'] . ':' . $event['id'], // unique identifier for fullcalendar
'start' => gmdate('c', $this->fromGMT($event['start'])), // client treats date strings as they were in users's timezone
'end' => gmdate('c', $this->fromGMT($event['end'])), // so shift timestamps to users's timezone and render a date string
'description' => strval($event['description']),
diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js
index 405f723..a8eb2b8 100644
--- a/plugins/calendar/calendar_ui.js
+++ b/plugins/calendar/calendar_ui.js
@@ -1979,7 +1979,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]);