mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Remove lightbox.is_open property.
Outside of lightbox.js, we now use modals.lightbox_open() to detect that the lightbox modal is open.
This commit is contained in:
@@ -107,7 +107,7 @@ exports.open = function (image) {
|
||||
|
||||
function lightbox_close_modal() {
|
||||
$(".player-container iframe").remove();
|
||||
lightbox.is_open = false;
|
||||
is_open = false;
|
||||
document.activeElement.blur();
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ exports.open = function (image) {
|
||||
});
|
||||
|
||||
popovers.hide_all();
|
||||
lightbox.is_open = true;
|
||||
is_open = true;
|
||||
};
|
||||
|
||||
exports.show_from_selected_message = function () {
|
||||
@@ -136,17 +136,6 @@ exports.next = function () {
|
||||
$(".image-list .image.selected").next().click();
|
||||
};
|
||||
|
||||
Object.defineProperty(exports, "is_open", {
|
||||
get: function () {
|
||||
return is_open;
|
||||
},
|
||||
set: function (value) {
|
||||
if (typeof value === "boolean") {
|
||||
is_open = value;
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
// this is a block of events that are required for the lightbox to work.
|
||||
$(function () {
|
||||
$("#main_div").on("click", ".message_inline_image a", function (e) {
|
||||
|
||||
Reference in New Issue
Block a user