forked from extern/easydiffusion
Fire an event upon tab change
Fire an event upon tab change.
This commit is contained in:
parent
7eb29fa91b
commit
62553dc0fa
@ -1380,6 +1380,7 @@ function selectTab(tab_id) {
|
|||||||
tabInfo.tab.classList.toggle("active")
|
tabInfo.tab.classList.toggle("active")
|
||||||
tabInfo.content.classList.toggle("active")
|
tabInfo.content.classList.toggle("active")
|
||||||
}
|
}
|
||||||
|
document.dispatchEvent(new CustomEvent('tabClick', { detail: tabInfo }))
|
||||||
}
|
}
|
||||||
function linkTabContents(tab) {
|
function linkTabContents(tab) {
|
||||||
var name = tab.id.replace("tab-", "")
|
var name = tab.id.replace("tab-", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user