if selected tab is same as previous then go previous instead

montage-api
Moe 2021-12-04 21:37:40 -08:00
parent 40dc0c217d
commit baa1986d80
1 changed files with 4 additions and 0 deletions

View File

@ -264,6 +264,10 @@ function blipTo(xPageValue,yPageValue){
function openTab(theTab,loadData,backAction,haltTrigger,type){
loadData = loadData ? loadData : {}
if(tabTree && tabTree.back && tabTree.back.name === theTab){
goBackOneTab()
return;
}
saveTabBlipPosition(activeTabName)
var allTabs = $('.page-tab');
allTabs.hide().removeClass('tab-active');