From 7d02d57d401cf8a4bad6b4c9bb7d99d131649609 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 27 Feb 2021 15:13:33 +0000 Subject: [PATCH] allowing test restarting --- src/js/script.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index 912b8a81f..ab236a1de 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -4928,8 +4928,11 @@ $(document.body).on("click", "#restartTestButtonWithSameWordset", () => { return; } manualRestart = true; - - restartTest(true); + if (config.mode === "quote") { + restartTest(); + } else { + restartTest(true); + } }); $(document).on("keypress", "#restartTestButtonWithSameWordset", (event) => { @@ -4938,7 +4941,11 @@ $(document).on("keypress", "#restartTestButtonWithSameWordset", (event) => { return; } if (event.keyCode == 13) { - restartTest(true); + if (config.mode === "quote") { + restartTest(); + } else { + restartTest(true); + } } });