summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-01-21 12:11:52 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2015-01-21 12:22:53 (GMT)
commita12fcba096f2afbef49d678d9dc752cfdbec9994 (patch)
treec1b392ca4b49f01fc0be089ae75cb761217b08ca /plugins
parent239b07e3005a44ce36196492d311e906bf305e9a (diff)
downloadroundcubemail-plugins-kolab-a12fcba096f2afbef49d678d9dc752cfdbec9994.tar.gz
Update the free-busy status when changing the organizer identity
Diffstat (limited to 'plugins')
-rw-r--r--plugins/calendar/calendar_ui.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js
index ade2240..2d2c467 100644
--- a/plugins/calendar/calendar_ui.js
+++ b/plugins/calendar/calendar_ui.js
@@ -4012,6 +4012,17 @@ function rcube_calendar_ui(settings)
me.init_alarms_edit('#edit-alarms');
me.init_recurrence_edit('#eventedit');
+ // reload free-busy status when changing the organizer identity
+ $('#eventedit').on('change', '#edit-identities-list', function(e) {
+ var email = settings.identities[$(this).val()],
+ icon = $(this).closest('tr').find('img.availabilityicon');
+
+ if (email && icon.length) {
+ icon.attr('data-email', email);
+ check_freebusy_status(icon, email, me.selected_event);
+ }
+ });
+
$('#event-export-startdate').datepicker(datepicker_settings);
// init attendees autocompletion