[前端] 修改checkbox顔色

This commit is contained in:
dev02 2023-07-05 10:11:46 +08:00
parent 54e295628f
commit a620eae1a8
2 changed files with 4 additions and 2 deletions

View File

@ -875,7 +875,7 @@
} }
function setAuthPage() { function setAuthPage() {
$(`#accAuthPageTable input[type=checkbox]`).prop('disabled', false); $(`#accAuthPageTable input[type=checkbox]`).removeClass();
$.each($(`#accAuthPageTable input[type=checkbox]:checked`), function (i, v) { $.each($(`#accAuthPageTable input[type=checkbox]:checked`), function (i, v) {
$(v).click(); $(v).click();
}); });
@ -886,7 +886,7 @@
$.each(pageAct.authCode, function (i, v) { $.each(pageAct.authCode, function (i, v) {
$(`#accAuthPageTable input[id=${v}]`).click(); $(`#accAuthPageTable input[id=${v}]`).click();
$(`#accAuthPageTable input[id=${v}]`).attr('disabled', true); $(`#accAuthPageTable input[id=${v}]`).addClass("disabledBox");
}); });
} }

View File

@ -45,6 +45,8 @@ input.toggle:checked { background: #97c193; }
.lds-ring div:nth-child(3) { animation-delay: -0.15s; } .lds-ring div:nth-child(3) { animation-delay: -0.15s; }
input.disabledBox { pointer-events: none; }
/* js-tree */ /* js-tree */
.jstree-node { padding-bottom: 3px; } .jstree-node { padding-bottom: 3px; }
.jstree-default-dark { background-color: transparent; } .jstree-default-dark { background-color: transparent; }