mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user