mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
hashchange: Fix exiting #subscriptions overlay not updating hash.
This applies fixes a bug where if a user used the Esc key, the subscriptions hash did not get restored to its previous state.
This commit is contained in:
committed by
Tim Abbott
parent
8c7321abad
commit
377592802c
@@ -256,8 +256,6 @@ $(function () {
|
|||||||
|
|
||||||
if ($(e.target).is(".exit, .exit-sign, #subscription_overlay, #subscription_overlay > .flex")) {
|
if ($(e.target).is(".exit, .exit-sign, #subscription_overlay, #subscription_overlay > .flex")) {
|
||||||
subs.close();
|
subs.close();
|
||||||
|
|
||||||
hashchange.exit_settings();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// HOME
|
// HOME
|
||||||
|
|||||||
@@ -659,6 +659,7 @@ Object.defineProperty(exports, "is_open", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
exports.close = function () {
|
exports.close = function () {
|
||||||
|
hashchange.exit_settings();
|
||||||
meta.is_open = false;
|
meta.is_open = false;
|
||||||
$("#subscription_overlay").fadeOut(500);
|
$("#subscription_overlay").fadeOut(500);
|
||||||
subs.remove_miscategorized_streams();
|
subs.remove_miscategorized_streams();
|
||||||
|
|||||||
Reference in New Issue
Block a user