Required library edition:
Required library file: dhtmlxscheduler.js
Method will hide custom form, remove modal cover, and exec after-saving operations if necessary. Can be used as part of custom lightbox form.
scheduler.endLightbox(false); //or scheduler.endLightbox(true, document.getElementById("my_form"));