sysinfo improvements

This commit is contained in:
Jokob-sk
2024-03-16 09:42:21 +11:00
parent 06a1fa3512
commit a99dbaef78
13 changed files with 857 additions and 765 deletions

View File

@@ -883,18 +883,25 @@ function initializeTabs () {
// the #target from the url
target = window.location.hash.substr(1)
// get only the part between #...?
if(target.includes('?'))
{
target = target.split('?')[0]
}
console.log(target)
console.log(target);
// update cookie if target specified
if(target != "")
{
setCache(key, target+'_id') // _id is added so it doesn't conflict with AdminLTE tab behavior
if (!selectedTab.endsWith("_id")) {
selectedTab = target + "_id";
}
setCache(key, selectedTab) // _id is added so it doesn't conflict with AdminLTE tab behavior
}
// get the tab id from the cookie (already overriden by the target)