Update ServerHider.plugin.js

This commit is contained in:
Mirco Wittrien 2019-01-03 21:44:47 +01:00
parent 6e9b54c35b
commit 89ca4fd62e
1 changed files with 2 additions and 1 deletions

View File

@ -190,7 +190,8 @@ class ServerHider {
let serverHiderModal = $(this.serverHiderModalMarkup);
serverHiderModal
.on("click", ".btn-all", () => {
$(".serverhiderCheckbox").each((_, checkBox) => {if (checkBox.checked == $(".serverhiderCheckbox")[0].checked) checkBox.click();});
$(".serverhiderCheckbox")[0].click();
$(".serverhiderCheckbox").each((i, checkBox) => {if (i > 0 && checkBox.checked != $(".serverhiderCheckbox")[0].checked) checkBox.click();});
});
for (let serverObj of serverObjs) {