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

Authored by fabioperrella on Aug 29 2016, 1:53 PM.

Details

Summary

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

Diff Detail

Repository
rRPK roundcubemail-plugins-kolab
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
fabioperrella retitled this revision from to trigger an event when modal calendar edit/new event is rendered.Aug 29 2016, 1:53 PM
fabioperrella updated this object.
fabioperrella edited the test plan for this revision. (Show Details)
fabioperrella set the repository for this revision to rRPK roundcubemail-plugins-kolab.
machniak requested changes to this revision.Sep 26 2016, 1:26 PM

I propose to name the event "calendar-event-dialog" and add dialog: $dialog argument. See also D218.

This revision now requires changes to proceed.Sep 26 2016, 1:26 PM

I agree to add $dialog as arg, but what about renaming to "calendar-event-dialog-finish" or "calendar-event-dialog-end" ? The reason is today there is another hook called "calendar-event-init" in the beginning of the method "event_show_dialog"

Well, there's code that is executed async when opening the dialog, so -finish/-end is not exactly true when you trigger the event. That's why I prefer a name without such a suffix.

fabioperrella updated this revision to Diff 514.Oct 4 2016, 1:31 AM
fabioperrella removed rRPK roundcubemail-plugins-kolab as the repository for this revision.

ok, I changed to the way you told to

machniak accepted this revision.Oct 4 2016, 1:45 PM
This revision is now accepted and ready to land.Oct 4 2016, 1:45 PM
This revision was automatically updated to reflect the committed changes.