Skip to content

Commit

Permalink
Remove console log statements (#1828)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Sep 14, 2023
1 parent 29765a9 commit ff5fddc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions static/js/tabpane-persist.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ function tdGetTabSelectEventCountAndInc() {
// Main functions

function tdActivateTabsWithKey(key) {
console.log(key)

if (!key) return;

document.querySelectorAll(`.nav-tabs > .nav-item > a[data-td-tp-persist='${key}']`).forEach((element) => {
console.log(element)
new bootstrap.Tab(element).show();
});
}
Expand Down Expand Up @@ -91,7 +88,6 @@ function tdRegisterTabClickHandler(tabs) {
tabs.forEach((tab) => {
tab.addEventListener('click', () => {
const activeTabKey = tab.getAttribute("data-td-tp-persist");
console.log("!!", activeTabKey)
tdPersistActiveTab(activeTabKey);
tdActivateTabsWithKey(activeTabKey)
});
Expand All @@ -103,7 +99,6 @@ window.addEventListener('DOMContentLoaded', () => {
if (!_tdSupportsLocalStorage()) return;

var allTabsInThisPage = document.querySelectorAll(".nav-tabs > .nav-item > a");
console.log(allTabsInThisPage);
tdRegisterTabClickHandler(allTabsInThisPage);
tdGetAndActivatePersistedTabs(allTabsInThisPage);
});

0 comments on commit ff5fddc

Please sign in to comment.