MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / embeddingsExpandAll

Function embeddingsExpandAll

ui/media/js/main.js:2973–2986  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2971}
2972
2973function embeddingsExpandAll() {
2974 const btnElem = embeddingsCollapsiblesBtn
2975
2976 const iconElem = btnElem.querySelector(".embeddings-action-icon")
2977 const textElem = btnElem.querySelector(".embeddings-action-text")
2978 expandAll("#embeddings-list .collapsible")
2979
2980 collapsiblesBtnState = true
2981
2982 expandIconClasses.forEach((c) => iconElem.classList.remove(c))
2983 collapseIconClasses.forEach((c) => iconElem.classList.add(c))
2984
2985 textElem.innerText = collapseText
2986}
2987
2988embeddingsCollapsiblesBtn.addEventListener("click", (e) => {
2989 if (collapsiblesBtnState) {

Callers 2

updateEmbeddingsListFunction · 0.85
main.jsFile · 0.85

Calls 2

expandAllFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected