support all languages && improved code readability and maintainability

This commit is contained in:
qcrao
2024-05-15 12:03:10 +08:00
parent 0267d05e83
commit 6fc1a93ac2
6 changed files with 87 additions and 101 deletions

View File

@@ -1,9 +1,9 @@
function toggleCheckboxes() {
const conversations = document.querySelectorAll(".conversation-checkbox");
const conversations = document.querySelectorAll(`.${CHECKBOX_CLASS}`);
conversations.forEach((checkbox) => {
checkbox.checked = !checkbox.checked;
});
}
toggleCheckboxes();
toggleCheckboxes();