pholus 2.2

This commit is contained in:
Jokob-sk
2022-12-31 00:25:32 +11:00
parent bde96af7da
commit 73fd1ef9b4
10 changed files with 486 additions and 503 deletions

View File

@@ -733,11 +733,31 @@ function scrollDown()
}
function initializeTabs () {
key = "activeMaintenanceTab"
// --------------------------------------------------------
// default selection
selectedTab = "tab_Settings"
// the #target from the url
target = window.location.hash.substr(1)
// update cookie if target specified
if(target != "")
{
// console.log(target)
setCache(key, target+'_id')
}
// get the tab id from the cookie (already overriden by the target)
if(!emptyArr.includes(getCache(key)))
{
selectedTab = getCache(key);
}
// Activate panel
if(!emptyArr.includes(getCache(key)))
{