mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-16 06:02:41 -04:00
refactor: Consolidate tab initialization logic using shared utility function
This commit is contained in:
1 parent
9d64665599
commit
4c0d5c7376
5 files changed
+116
-87
No files matched your search
@@ -330,7 +330,13 @@ function generateTabs() {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Auto-select tab from ?tab= URL param or cache (scoped to plugin nav only)
|
||||
initializeTabsShared({
|
||||
cacheKey: 'activePluginsTab',
|
||||
urlParamName: 'tab',
|
||||
idSuffix: '_id',
|
||||
tabContainer: '#tabs-location'
|
||||
});
|
||||
|
||||
hideSpinner()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user