forked from extern/easydiffusion
Merge pull request #664 from patriceac/tab-change-trigger
Fire an event upon tab change
This commit is contained in:
commit
85fd2dfaaa
@ -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-", "")
|
||||
|
Loading…
Reference in New Issue
Block a user