hotkey: Fix exiting the subscriptions page with "escape".

This had apparently regressed because it was checking the wrong
selector, and also didn't do the right thing to exit.
This commit is contained in:
Tim Abbott 2017-01-06 23:43:36 -08:00
parent 9f1fca30df
commit 81a19375d2

View File

@ -195,7 +195,7 @@ function process_hotkey(e) {
if ($("#overlay").hasClass("show")) {
ui.exit_lightbox_photo();
return true;
} else if ($("#subscription_overlay").hasClass("show")) {
} else if ($("#subscription_overlay").is(":visible")) {
$("#subscription_overlay").click();
return true;
}