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
F11797815: D212.diff
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
Unknown Object (File)
Thu, Mar 28, 12:15 AM
Unknown Object (File)
Feb 9 2024, 2:01 PM
Subscribers
None

Details

Summary

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

Diff Detail

Repository
rRPK roundcubemail-plugins-kolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.