From a4efbdd714ed2180610a7106927f0bdf0be42785 Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 17 Nov 2023 14:59:35 +0000 Subject: [PATCH] refactor: use button element instead of a class --- frontend/src/ts/popups/custom-test-duration-popup.ts | 2 +- frontend/src/ts/popups/custom-word-amount-popup.ts | 2 +- frontend/static/html/popups.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/ts/popups/custom-test-duration-popup.ts b/frontend/src/ts/popups/custom-test-duration-popup.ts index 2c3f3d363..25427a104 100644 --- a/frontend/src/ts/popups/custom-test-duration-popup.ts +++ b/frontend/src/ts/popups/custom-test-duration-popup.ts @@ -143,7 +143,7 @@ $("#customTestDurationPopupWrapper input").on("keyup", (e) => { } }); -$("#customTestDurationPopupWrapper .button").on("click", () => { +$("#customTestDurationPopupWrapper button").on("click", () => { apply(); }); diff --git a/frontend/src/ts/popups/custom-word-amount-popup.ts b/frontend/src/ts/popups/custom-word-amount-popup.ts index 06c73513a..719306b8e 100644 --- a/frontend/src/ts/popups/custom-word-amount-popup.ts +++ b/frontend/src/ts/popups/custom-word-amount-popup.ts @@ -76,7 +76,7 @@ $("#customWordAmountPopupWrapper input").on("keypress", (e) => { } }); -$("#customWordAmountPopupWrapper .button").on("click", () => { +$("#customWordAmountPopupWrapper button").on("click", () => { apply(); }); diff --git a/frontend/static/html/popups.html b/frontend/static/html/popups.html index 8c21bdbce..a95d6f42e 100644 --- a/frontend/static/html/popups.html +++ b/frontend/static/html/popups.html @@ -599,7 +599,7 @@ You can start an infinite test by inputting 0. Then, to stop the test, use the Bail Out feature (esc or ctrl/cmd + shift + p > Bail Out) -
ok
+ -
ok
+