This commit is contained in:
MeowcaTheoRange 2024-03-19 20:31:57 -05:00
parent a8a22773aa
commit b28555b7e4

View file

@ -133,10 +133,10 @@ let lastId = "";
let selectedUsers = [];
function generateFollowersMap() {
const checks = Array.from(el_id_listfollowers.querySelectorAll(".followers_checkbox"));
const checks = Array.from(el_id_listfollowers.querySelectorAll(".follower_checkbox"));
let codeMap = {};
checks.forEach((checkbox) => {
const handle = checkbox.parentElement.parentElement.querySelector(".followers_checkname");
const handle = checkbox.parentElement.parentElement.querySelector(".follower_checkname");
codeMap[handle.innerHTML] = checkbox.checked;
});
return codeMap;
@ -144,9 +144,9 @@ function generateFollowersMap() {
function readFollowersMap(m) {
if (m == null) return;
const handles = Array.from(el_id_listfollowers.querySelectorAll(".followers_checkname"));
const handles = Array.from(el_id_listfollowers.querySelectorAll(".follower_checkname"));
handles.forEach((handle) => {
const checkbox = handle.parentElement.parentElement.querySelector(".followers_checkbox");
const checkbox = handle.parentElement.parentElement.querySelector(".follower_checkbox");
checkbox.checked = m[handle.innerHTML];
});
}