Added first version of tab management
This commit is contained in:
@@ -152,7 +152,6 @@ function initLayoutResizer(layoutId) {
|
||||
|
||||
// Re-initialize after HTMX swaps within this layout
|
||||
layoutElement.addEventListener('htmx:afterSwap', function (event) {
|
||||
console.log('Layout swapped:', event.detail.target);
|
||||
initResizers();
|
||||
});
|
||||
}
|
||||
@@ -213,7 +212,7 @@ function initBoundaries(elementId, updateUrl) {
|
||||
* This function is called when switching between tabs to update both the content visibility
|
||||
* and the tab button states.
|
||||
*
|
||||
* @param {string} controllerId - The ID of the tabs controller element (format: "{managerId}-content-controller")
|
||||
* @param {string} controllerId - The ID of the tabs controller element (format: "{managerId}-controller")
|
||||
*/
|
||||
function updateTabs(controllerId) {
|
||||
const controller = document.getElementById(controllerId);
|
||||
@@ -228,8 +227,8 @@ function updateTabs(controllerId) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Extract manager ID from controller ID (remove '-content-controller' suffix)
|
||||
const managerId = controllerId.replace('-content-controller', '');
|
||||
// Extract manager ID from controller ID (remove '-controller' suffix)
|
||||
const managerId = controllerId.replace('-controller', '');
|
||||
|
||||
// Hide all tab contents for this manager
|
||||
const contentWrapper = document.getElementById(`${managerId}-content-wrapper`);
|
||||
|
||||
Reference in New Issue
Block a user