Fire an event upon tab change

Fire an event upon tab change.
This commit is contained in:
patriceac 2022-12-16 01:45:58 -08:00
parent 7eb29fa91b
commit 62553dc0fa

View File

@ -1380,6 +1380,7 @@ function selectTab(tab_id) {
tabInfo.tab.classList.toggle("active")
tabInfo.content.classList.toggle("active")
}
document.dispatchEvent(new CustomEvent('tabClick', { detail: tabInfo }))
}
function linkTabContents(tab) {
var name = tab.id.replace("tab-", "")