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

@@ -24,6 +24,10 @@ exports.settings_open = function () {
return open_modal_name === 'settings';
};
exports.lightbox_open = function () {
return open_modal_name === 'lightbox';
};
exports.open_overlay = function (opts) {
if (!opts.name || !opts.overlay || !opts.on_close) {
blueslip.error('Programming error in open_modal');