Close lightbox

I added a custom button to lightbox and when user clicks this button, I do some job and then I want to close lightbox. This method doesn’t work:

scheduler.endLightbox(false);

And closes only overlay, as it was mainly created for custom lightboxes. Is there another way to close lightbox?

You can call it like

scheduler.endLightbox(html_element);

where html_element - top html element of custom lightbox.

Thanks! I use this code now:

scheduler.endLightbox(false, $(’.dhx_cal_light’).get(0));

1 Like