endLightbox

closes the lightbox

void endLightbox(boolean mode, [HTMLElement box] );
modebooleanif set to true, the changes, made in the lightbox, will be saved before closing.
If - false, the changes will be cancelled.
boxHTMLElementthe HTML container for the lightbox

Example

scheduler.endLightbox(false);
//or
scheduler.endLightbox(true, document.getElementById("my_form"));

Related samples

Details

The method is used while creating a custom lightbox

Back to top