summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-07-17 11:52:27 (GMT)
committerThomas Bruederli <thomas@roundcube.net>2012-07-17 11:53:04 (GMT)
commitc2d9b343cc8443aa050bb81573501fc5b0fa0c9f (patch)
tree9e24a01892d320701c7d66d8019f15130be44b67
parent3b5724089ae2fe8aadc63e5992d1e1d7a62a00c0 (diff)
downloadroundcubemail-plugins-kolab-c2d9b343cc8443aa050bb81573501fc5b0fa0c9f.tar.gz
Grep events by (u)id AND source (#880)
-rw-r--r--plugins/calendar/calendar_ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js
index 09fdd20..405f723 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', event.id);
+ var existing = fc.fullCalendar('clientEvents', function(e){ return (e.id == event.id && e.calendar == event.calendar); });
if (existing.length) {
$.extend(existing[0], event);
fc.fullCalendar('updateEvent', existing[0]);