eebles
This commit is contained in:
parent
a8a22773aa
commit
b28555b7e4
1 changed files with 4 additions and 4 deletions
|
@ -133,10 +133,10 @@ let lastId = "";
|
||||||
let selectedUsers = [];
|
let selectedUsers = [];
|
||||||
|
|
||||||
function generateFollowersMap() {
|
function generateFollowersMap() {
|
||||||
const checks = Array.from(el_id_listfollowers.querySelectorAll(".followers_checkbox"));
|
const checks = Array.from(el_id_listfollowers.querySelectorAll(".follower_checkbox"));
|
||||||
let codeMap = {};
|
let codeMap = {};
|
||||||
checks.forEach((checkbox) => {
|
checks.forEach((checkbox) => {
|
||||||
const handle = checkbox.parentElement.parentElement.querySelector(".followers_checkname");
|
const handle = checkbox.parentElement.parentElement.querySelector(".follower_checkname");
|
||||||
codeMap[handle.innerHTML] = checkbox.checked;
|
codeMap[handle.innerHTML] = checkbox.checked;
|
||||||
});
|
});
|
||||||
return codeMap;
|
return codeMap;
|
||||||
|
@ -144,9 +144,9 @@ function generateFollowersMap() {
|
||||||
|
|
||||||
function readFollowersMap(m) {
|
function readFollowersMap(m) {
|
||||||
if (m == null) return;
|
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) => {
|
handles.forEach((handle) => {
|
||||||
const checkbox = handle.parentElement.parentElement.querySelector(".followers_checkbox");
|
const checkbox = handle.parentElement.parentElement.querySelector(".follower_checkbox");
|
||||||
checkbox.checked = m[handle.innerHTML];
|
checkbox.checked = m[handle.innerHTML];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue