This commit is contained in:
AUTOMATIC1111 2023-11-05 09:20:05 +03:00
parent 046c7b053a
commit 16ab174290

View File

@ -11,7 +11,9 @@ function setupAccordion(accordion){
var span = labelWrap.querySelector('span');
var linked = true;
var isOpen = function(){ return labelWrap.classList.contains('open'); }
var isOpen = function() {
return labelWrap.classList.contains('open');
};
var observerAccordionOpen = new MutationObserver(function(mutations) {
mutations.forEach(function(mutationRecord) {
@ -33,7 +35,7 @@ function setupAccordion(accordion){
if (isOpen() != checked) {
labelWrap.click();
}
}
};
var visibleCheckbox = document.createElement('INPUT');
visibleCheckbox.type = 'checkbox';