This commit is contained in:
parent
7a8dc91afe
commit
9ac9f5e1c9
1 changed files with 7 additions and 0 deletions
7
src/servala/static/js/bootstrap-tabs.js
vendored
7
src/servala/static/js/bootstrap-tabs.js
vendored
|
|
@ -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)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue