diff --git a/src/js/commandline.js b/src/js/commandline.js index 03becdfb5..3c1b1de4a 100644 --- a/src/js/commandline.js +++ b/src/js/commandline.js @@ -9,6 +9,7 @@ import * as SimplePopups from "./simple-popups"; import * as CustomWordAmountPopup from "./custom-word-amount-popup"; import * as CustomTestDurationPopup from "./custom-test-duration-popup"; import * as CustomTextPopup from "./custom-text-popup"; +import * as QuoteSearchPopupWrapper from "./quote-search-popup"; let commandLineMouseMode = false; @@ -360,6 +361,9 @@ $(document).ready((e) => { } else if (!$("#customTextPopupWrapper").hasClass("hidden")) { event.preventDefault(); CustomTextPopup.hide(); + } else if (!$("#quoteSearchPopupWrapper").hasClass("hidden")) { + event.preventDefault(); + QuoteSearchPopupWrapper.hide(); } else if (!$("#commandLineWrapper").hasClass("hidden")) { if (CommandlineLists.current.length > 1) { CommandlineLists.current.pop(); diff --git a/src/js/popups/custom-test-duration-popup.js b/src/js/popups/custom-test-duration-popup.js index 33e384d83..b3e36fa17 100644 --- a/src/js/popups/custom-test-duration-popup.js +++ b/src/js/popups/custom-test-duration-popup.js @@ -81,7 +81,7 @@ export function show() { previewDuration(); } -function hide() { +export function hide() { if (!$("#customTestDurationPopupWrapper").hasClass("hidden")) { $("#customTestDurationPopupWrapper") .stop(true, true) diff --git a/src/js/popups/custom-word-amount-popup.js b/src/js/popups/custom-word-amount-popup.js index 2b94f0fd1..14960a24a 100644 --- a/src/js/popups/custom-word-amount-popup.js +++ b/src/js/popups/custom-word-amount-popup.js @@ -15,7 +15,7 @@ export function show() { } } -function hide() { +export function hide() { if (!$("#customWordAmountPopupWrapper").hasClass("hidden")) { $("#customWordAmountPopupWrapper") .stop(true, true)