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:
Steve Howell
2017-05-10 06:43:36 -07:00
committed by Tim Abbott
parent 1d7f93e550
commit f60a829b4d
4 changed files with 11 additions and 21 deletions

View File

@@ -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) {