Merge pull request #664 from patriceac/tab-change-trigger

Fire an event upon tab change
This commit is contained in:
cmdr2 2022-12-16 18:24:10 +05:30 committed by GitHub
commit 85fd2dfaaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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-", "")