Avoid re-opening the lightbox.

If the lightbox is already open, don't re-open it.
This commit is contained in:
Steve Howell 2017-05-10 06:27:31 -07:00 committed by Tim Abbott
parent 0e05f3f4ee
commit 1d7f93e550
1 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,10 @@ exports.open = function (image) {
}
}
if (is_open) {
return;
}
function lightbox_close_modal() {
$(".player-container iframe").remove();
lightbox.is_open = false;