From 7e3075bcdec411b9be9c942483e82725709bf144 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 3 Jan 2024 14:20:36 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A9=94=EB=89=B4=20=ED=83=AD=20=EB=8B=AB?= =?UTF-8?q?=EA=B8=B0=20=ED=95=A8=EC=88=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/js/base/menu-support-fims.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/resources/js/base/menu-support-fims.js b/src/main/webapp/resources/js/base/menu-support-fims.js index da8fac7a..ab58e26a 100644 --- a/src/main/webapp/resources/js/base/menu-support-fims.js +++ b/src/main/webapp/resources/js/base/menu-support-fims.js @@ -163,7 +163,7 @@ function closeTab(menuId) { let activeTab = $('div#tabsForInnerPage ul li button.nav-link').filter(".active"); let activeIdx = $('div#tabsForInnerPage ul li button.nav-link').index(activeTab); - + if(selIdx === activeIdx) { if (num_tabs - 1 > activeIdx) { $('div#tabsForInnerPage ul li button.nav-link').eq(activeIdx + 1).tab("show"); @@ -171,12 +171,10 @@ function closeTab(menuId) { $('div#tabsForInnerPage ul li button.nav-link').eq(activeIdx - 1).tab("show"); } } - - document.getElementById("innerPage-"+menuId).remove(); - delete innerPageMap[menuId]; - - $("#tab-" + activeIdx).remove(); + + document.getElementById("tab-"+menuId).remove(); $('#tabsForInnerPage').find('#li-'+menuId).remove(); + delete innerPageMap[menuId]; } function id2Index(tabsId, srcId) {