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,10 +14,13 @@ onOptionsChanged(function() {
|
|||||||
if (!commentBefore && !commentAfter) return;
|
if (!commentBefore && !commentAfter) return;
|
||||||
|
|
||||||
var span = null;
|
var span = null;
|
||||||
if (div.classList.contains('gradio-checkbox')) span = div.querySelector('label span');
|
if (div.classList.contains('gradio-checkbox')) {
|
||||||
else if (div.classList.contains('gradio-checkboxgroup')) span = div.querySelector('span').firstChild;
|
span = div.querySelector('label span');
|
||||||
else if (div.classList.contains('gradio-radio')) span = div.querySelector('span').firstChild;
|
} else if (div.classList.contains('gradio-checkboxgroup')) {
|
||||||
else {
|
span = div.querySelector('span').firstChild;
|
||||||
|
} else if (div.classList.contains('gradio-radio')) {
|
||||||
|
span = div.querySelector('span').firstChild;
|
||||||
|
} else {
|
||||||
var elem = div.querySelector('label span');
|
var elem = div.querySelector('label span');
|
||||||
if (elem) span = elem.firstChild;
|
if (elem) span = elem.firstChild;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user