From 81a19375d2eab2e8d2df2dffa64090e8b32ec79d Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 6 Jan 2017 23:43:36 -0800 Subject: [PATCH] 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. --- static/js/hotkey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/hotkey.js b/static/js/hotkey.js index cf64721f74..50e60cdda5 100644 --- a/static/js/hotkey.js +++ b/static/js/hotkey.js @@ -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; }