From bee40d5f1920ef8b11e354eaf43aacc19c8e8661 Mon Sep 17 00:00:00 2001 From: joaovictor3g Date: Fri, 12 Apr 2024 11:27:40 -0300 Subject: [PATCH] calls hide function --- web/assets/js/components/modals/playground-mode.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/assets/js/components/modals/playground-mode.js b/web/assets/js/components/modals/playground-mode.js index 19e9592..6f864dc 100644 --- a/web/assets/js/components/modals/playground-mode.js +++ b/web/assets/js/components/modals/playground-mode.js @@ -109,7 +109,7 @@ function handleModeClick(event, mode, element) { localStorage.setItem(localStorageKey, value); celEditor.setValue("", -1); dataEditor.setValue("", -1); - setTimeout(() => closeModal(), 1000); + setTimeout(() => modal.hide(), 1000); } function renderModeOptions() { @@ -166,10 +166,6 @@ function createInputElement(mode) { return input; } -function closeModal() { - playgroundModesModalEl.style.display = "none"; -} - function renderUIChangesByMode(mode) { const titleEl = document.querySelector(".title.expression__square"); const toggleModeHolder = document.querySelector(".modes__container-holder");