From 34346bce450d3f783876e6fb4c96ca32acb23f9a Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Mon, 13 Jun 2011 13:54:53 -0600 Subject: [PATCH] Also send calendar information when deleting an event (should make things easier for the backend) --- plugins/calendar/calendar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/calendar/calendar.js b/plugins/calendar/calendar.js index 21aafefc..f4340b0e 100644 --- a/plugins/calendar/calendar.js +++ b/plugins/calendar/calendar.js @@ -493,11 +493,11 @@ function rcube_calendar(settings) this.delete_event = function(event) { // show extended confirm dialog for recurring events, use jquery UI dialog if (event.recurrence) - return recurring_edit_confirm({ id:event.id }, 'remove'); + return recurring_edit_confirm({ id:event.id, calendar:event.calendar }, 'remove'); // send remove request to plugin if (confirm(rcmail.gettext('deleteventconfirm', 'calendar'))) { - rcmail.http_post('plugin.event', { action:'remove', e:{ id:event.id } }); + rcmail.http_post('plugin.event', { action:'remove', e:{ id:event.id, calendar:event.calendar } }); return true; }