|
|
|
@ -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) {
|
|
|
|
|