Add print debugging to tab setup
All checks were successful
Tests / test (push) Successful in 29s

This commit is contained in:
Tobias Kunze 2025-11-10 14:04:42 +01:00
parent 7a8dc91afe
commit 9ac9f5e1c9

View file

@ -3,15 +3,22 @@
(function() { (function() {
'use strict'; 'use strict';
console.log("Loading bootstrap tab setup")
const initBootstrapTabs = () => { const initBootstrapTabs = () => {
console.log("setting up bootstrap tabs")
const customTabList = document.querySelectorAll('#myTab button[data-bs-toggle="tab"]'); const customTabList = document.querySelectorAll('#myTab button[data-bs-toggle="tab"]');
console.log("found custom tabs", customTabList)
customTabList.forEach(function(tabButton) { customTabList.forEach(function(tabButton) {
new bootstrap.Tab(tabButton); new bootstrap.Tab(tabButton);
console.log("setting up custom tab", tabButton)
}); });
const expertTabList = document.querySelectorAll('#expertTab button[data-bs-toggle="tab"]'); const expertTabList = document.querySelectorAll('#expertTab button[data-bs-toggle="tab"]');
console.log("found expert tabs", expertTabList)
expertTabList.forEach(function(tabButton) { expertTabList.forEach(function(tabButton) {
new bootstrap.Tab(tabButton); new bootstrap.Tab(tabButton);
console.log("setting up expert tab", tabButton)
}); });
} }