mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 21:51:29 +08:00
fix(popups): ape key popup close button not working (andGuo) (#5020)
This commit is contained in:
parent
388f2e21f7
commit
2642e139cf
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue