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:
Brock Whittaker
2017-01-27 15:25:01 -08:00
committed by Tim Abbott
parent 8c7321abad
commit 377592802c
2 changed files with 1 additions and 2 deletions

View File

@@ -256,8 +256,6 @@ $(function () {
if ($(e.target).is(".exit, .exit-sign, #subscription_overlay, #subscription_overlay > .flex")) {
subs.close();
hashchange.exit_settings();
}
});
// HOME

View File

@@ -659,6 +659,7 @@ Object.defineProperty(exports, "is_open", {
});
exports.close = function () {
hashchange.exit_settings();
meta.is_open = false;
$("#subscription_overlay").fadeOut(500);
subs.remove_miscategorized_streams();