The opener() method returns the corresponding DayPilot.Modal instance from within the modal dialog.
DayPilot.Modal.opener();
DayPilot.Modal object