mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-06 08:10:16 -05:00
refactor: Consolidate tab initialization logic using shared utility function
This commit is contained in:
@@ -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