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?