Change escape key interception with subscription overlay.

The escape key used to be intercepted if the subscription pay display
was set to “block”, but now since we use the class “show” and lack to
hide and show the overlay, the query needs to change.
This commit is contained in:
Brock Whittaker
2017-01-03 17:55:22 -08:00
parent e21fe8b886
commit d8fc30a776

View File

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