Skip to content

Commit

Permalink
fix(popups): ape key popup close button not working (andGuo) (#5020)
Browse files Browse the repository at this point in the history
  • Loading branch information
andGuo authored Feb 8, 2024
1 parent 388f2e2 commit 2642e13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/ts/popups/simple-popups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
}
);
Expand Down

0 comments on commit 2642e13

Please sign in to comment.