From f970613e3cc9278b7cfbde203c1ce1e80dfc44d6 Mon Sep 17 00:00:00 2001 From: Earle Nietzel Date: Tue, 3 Sep 2024 10:10:31 -0400 Subject: [PATCH] SAK-50419 Lessons Change File dialog not appearing (#12835) --- lessonbuilder/tool/src/webapp/js/show-page.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lessonbuilder/tool/src/webapp/js/show-page.js b/lessonbuilder/tool/src/webapp/js/show-page.js index 2bb9bac2008f..3da1387434f9 100644 --- a/lessonbuilder/tool/src/webapp/js/show-page.js +++ b/lessonbuilder/tool/src/webapp/js/show-page.js @@ -1428,6 +1428,12 @@ $(document).ready(function () { }); $('.change-resource-movie').click(function () { + const deleteEl = document.querySelector("#movie-dialog"); + const modal = bootstrap.Modal.getInstance(deleteEl); + modal && modal.hide(); + const mmEl = document.querySelector("#add-multimedia-dialog"); + const mmModal = bootstrap.Modal.getOrCreateInstance(mmEl); + mmModal && mmModal.show(); mm_test_reset(); $("#mm-name-section").hide();