mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-20 21:30:09 +08:00
lint
This commit is contained in:
parent
cee0bf8464
commit
5e37bf66c1
@ -14,12 +14,15 @@ onOptionsChanged(function() {
|
||||
if (!commentBefore && !commentAfter) return;
|
||||
|
||||
var span = null;
|
||||
if (div.classList.contains('gradio-checkbox')) span = div.querySelector('label span');
|
||||
else if (div.classList.contains('gradio-checkboxgroup')) span = div.querySelector('span').firstChild;
|
||||
else if (div.classList.contains('gradio-radio')) span = div.querySelector('span').firstChild;
|
||||
else {
|
||||
if (div.classList.contains('gradio-checkbox')) {
|
||||
span = div.querySelector('label span');
|
||||
} else if (div.classList.contains('gradio-checkboxgroup')) {
|
||||
span = div.querySelector('span').firstChild;
|
||||
} else if (div.classList.contains('gradio-radio')) {
|
||||
span = div.querySelector('span').firstChild;
|
||||
} else {
|
||||
var elem = div.querySelector('label span');
|
||||
if(elem) span = elem.firstChild;
|
||||
if (elem) span = elem.firstChild;
|
||||
}
|
||||
|
||||
if (!span) return;
|
||||
|
Loading…
Reference in New Issue
Block a user