fix(popups): ape key popup close button not working (andGuo) (#5020)

This commit is contained in:
Andrew Guo 2024-02-08 05:53:56 -05:00 committed by GitHub
parent 388f2e21f7
commit 2642e139cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -262,7 +262,7 @@ class SimplePopup {
exec(): void {
if (!this.canClose) return;
const vals: string[] = [];
$.each($("#simplePopup input"), (_, el) => {
$.each($("#simplePopup input, #simplePopup textarea"), (_, el) => {
if ($(el).is(":checkbox")) {
vals.push($(el).is(":checked") ? "true" : "false");
} else {
@ -1363,10 +1363,10 @@ list["viewApeKey"] = new SimplePopup(
(_thisPopup) => {
_thisPopup.canClose = false;
$("#simplePopup textarea").css("height", "110px");
$("#simplePopup .button").addClass("hidden");
$("#simplePopup .submitButton").addClass("hidden");
setTimeout(() => {
_thisPopup.canClose = true;
$("#simplePopup .button").removeClass("hidden");
$("#simplePopup .submitButton").removeClass("hidden");
}, 5000);
}
);