[XSS] Enable "Clear XSS Choices" button only if some item is selected.
This commit is contained in:
parent
29fe044e7b
commit
167a4f3f98
|
@ -197,6 +197,9 @@ var UI = (() => {
|
|||
button = choicesUI.appendChild(document.createElement("button"));
|
||||
button.textContent = _("XSS_clearUserChoices");
|
||||
}
|
||||
(list.onchange = () => {
|
||||
button.disabled = list.selectedOptions.length === 0;
|
||||
})();
|
||||
button.onclick = () => {
|
||||
let xssUserChoices = UI.xssUserChoices;
|
||||
for (let o of [...list.selectedOptions]) {
|
||||
|
|
Loading…
Reference in New Issue