closes the lightbox
mode | boolean | if set to true, the changes, made in the lightbox, will be saved before closing. If - false, the changes will be cancelled. |
box | HTMLElement | the HTML container for the lightbox |
scheduler.endLightbox(false);
//or
scheduler.endLightbox(true, document.getElementById("my_form"));
The method is used while creating a custom lightbox