T1357: Fix unwanted "local changes" warning when moving/resizing shared event by delegatee

This commit is contained in:
Aleksander Machniak 2016-08-10 05:30:06 -04:00
parent da752c6b99
commit baf491e2bb

View file

@ -2500,6 +2500,12 @@ function rcube_calendar_ui(settings)
// display confirm dialog when modifying/deleting an event
var update_event_confirm = function(action, event, data)
{
// Allow other plugins to do actions here
// E.g. when you move/resize the event init wasn't called
// but we need it as some plugins may modify user identities
// we depend on here (kolab_delegation)
rcmail.triggerEvent('calendar-event-init', {o: event});
if (!data) data = event;
var decline = false, notify = false, html = '', cal = me.calendars[event.calendar],
_has_attendees = has_attendees(event), _is_organizer = is_organizer(event);
@ -2507,6 +2513,7 @@ function rcube_calendar_ui(settings)
// event has attendees, ask whether to notify them
if (_has_attendees) {
var checked = (settings.itip_notify & 1 ? ' checked="checked"' : '');
if (_is_organizer) {
notify = true;
if (settings.itip_notify & 2) {