Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

lightbox: Fix images not opening after navigating through back button.

Pranav261200038a0a4f62f1e
diff --git a/static/js/overlays.js b/static/js/overlays.js
index 59d2679d8be..b15b6e4d5f1 100644
--- a/static/js/overlays.js
+++ b/static/js/overlays.js
@@ -216,7 +216,9 @@ exports.close_active_modal = function () {
exports.close_for_hash_change = function () {
$(".overlay.show").removeClass("show");
- reset_state();
+ if (active_overlay) {
+ close_handler();
+ }
};
exports.open_settings = function () {