From af78014a7a396d685ecf93104606a63dcde5a7c2 Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 11 Jan 2022 18:56:07 +0100 Subject: [PATCH] added submission disabled message. closes #2278 --- src/js/popups/quote-submit-popup.js | 37 ++++++++++++++++------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/src/js/popups/quote-submit-popup.js b/src/js/popups/quote-submit-popup.js index 00b82e9ba..3dafcb8b0 100644 --- a/src/js/popups/quote-submit-popup.js +++ b/src/js/popups/quote-submit-popup.js @@ -61,22 +61,27 @@ async function submitQuote() { } export async function show(noAnim = false) { - if ($("#quoteSubmitPopupWrapper").hasClass("hidden")) { - await initDropdown(); - $("#quoteSubmitPopup #submitQuoteLanguage").val( - Config.language.replace(/_\d*k$/g, "") - ); - $("#quoteSubmitPopup #submitQuoteLanguage").trigger("change"); - $("#quoteSubmitPopup input").val(""); - $("#quoteSubmitPopupWrapper") - .stop(true, true) - .css("opacity", 0) - .removeClass("hidden") - .animate({ opacity: 1 }, noAnim ? 0 : 100, (e) => { - $("#quoteSubmitPopup textarea").focus().select(); - //updateResults(""); - }); - } + Notifications.add( + "Quote submission is disabled temporarily due to a large submission queue.", + 0, + 5 + ); + return; + // if ($("#quoteSubmitPopupWrapper").hasClass("hidden")) { + // await initDropdown(); + // $("#quoteSubmitPopup #submitQuoteLanguage").val( + // Config.language.replace(/_\d*k$/g, "") + // ); + // $("#quoteSubmitPopup #submitQuoteLanguage").trigger("change"); + // $("#quoteSubmitPopup input").val(""); + // $("#quoteSubmitPopupWrapper") + // .stop(true, true) + // .css("opacity", 0) + // .removeClass("hidden") + // .animate({ opacity: 1 }, noAnim ? 0 : 100, (e) => { + // $("#quoteSubmitPopup textarea").focus().select(); + // }); + // } } export function hide() {