trigger an event when modal calendar edit/new event is rendered

Summary: to help customize the modal behavior, trigger an event when modal rendering is done

Reviewers: machniak

Reviewed By: machniak

Differential Revision: https://git.kolab.org/D212
This commit is contained in:
Aleksander Machniak 2016-11-09 13:45:24 +01:00
parent 71c0d2f446
commit 9533b219ac

View file

@ -996,6 +996,8 @@ function rcube_calendar_ui(settings)
window.setTimeout(load_attendees_tab, exec_deferred);
if (calendar.attachments)
window.setTimeout(load_attachments_tab, exec_deferred);
rcmail.triggerEvent('calendar-event-dialog', {dialog: $dialog});
};
// show event changelog in a dialog