mirror of https://github.com/zulip/zulip.git
Avoid re-opening the lightbox.
If the lightbox is already open, don't re-open it.
This commit is contained in:
parent
0e05f3f4ee
commit
1d7f93e550
|
@ -101,6 +101,10 @@ exports.open = function (image) {
|
|||
}
|
||||
}
|
||||
|
||||
if (is_open) {
|
||||
return;
|
||||
}
|
||||
|
||||
function lightbox_close_modal() {
|
||||
$(".player-container iframe").remove();
|
||||
lightbox.is_open = false;
|
||||
|
|
Loading…
Reference in New Issue