Custom sites - hide first (useless) checkbox before label
This commit is contained in:
parent
e1e5461c63
commit
e2edc014e8
@ -170,8 +170,9 @@ function renderOptions_default() {
|
|||||||
inputEl.dataset.key = key;
|
inputEl.dataset.key = key;
|
||||||
inputEl.dataset.value = value;
|
inputEl.dataset.value = value;
|
||||||
inputEl.checked = (key in sites) || (key.replace(/\s\(.*\)/, '') in sites);
|
inputEl.checked = (key in sites) || (key.replace(/\s\(.*\)/, '') in sites);
|
||||||
|
if (value !=='') {
|
||||||
labelEl.appendChild(inputEl);
|
labelEl.appendChild(inputEl);
|
||||||
|
}
|
||||||
labelEl.appendChild(document.createTextNode(' '+key));
|
labelEl.appendChild(document.createTextNode(' '+key));
|
||||||
sitesEl.appendChild(labelEl);
|
sitesEl.appendChild(labelEl);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user