Page MenuHomePhorge

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

Authored by fabioperrella on Aug 29 2016, 1:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 23, 8:53 AM
Unknown Object (File)
Fri, Apr 19, 4:17 PM
Unknown Object (File)
Thu, Apr 18, 11:00 PM
Unknown Object (File)
Fri, Apr 12, 10:41 PM
Unknown Object (File)
Tue, Apr 9, 6:21 AM
Unknown Object (File)
Sat, Mar 30, 12:31 PM
Unknown Object (File)
Sat, Mar 30, 7:08 AM
Unknown Object (File)
Fri, Mar 29, 1:43 PM
Subscribers
None

Details

Summary

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

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

fabioperrella retitled this revision from to trigger an event when modal calendar edit/new event is rendered.
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 edited edge metadata.

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 edited edge metadata.
fabioperrella removed rRPK roundcubemail-plugins-kolab as the repository for this revision.

ok, I changed to the way you told to

machniak edited edge metadata.
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.