2023-02-25 21:44:02 +00:00
|
|
|
const members_tbody = document.getElementById('Members_tbody')
|
|
|
|
|
|
|
|
function approve_membership(t, url, uid) {
|
2023-02-24 19:29:07 +00:00
|
|
|
postToast(t, url,
|
|
|
|
{
|
|
|
|
},
|
|
|
|
() => {
|
2023-02-25 21:44:02 +00:00
|
|
|
document.getElementById(`kick-${uid}`).classList.remove('d-none')
|
|
|
|
document.getElementById(`time-${uid}`).innerHTML = formatDate(new Date());
|
|
|
|
document.getElementById(`counter-${uid}`).innerHTML = parseInt(members_tbody.lastElementChild.firstElementChild.innerHTML) + 1
|
|
|
|
|
|
|
|
members_tbody.append(document.getElementById(uid));
|
|
|
|
t.parentElement.remove()
|
2023-02-24 19:29:07 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
function reject_membership(t, url) {
|
|
|
|
postToast(t, url,
|
|
|
|
{
|
|
|
|
},
|
|
|
|
() => {
|
2023-02-25 21:44:02 +00:00
|
|
|
t.parentElement.parentElement.parentElement.remove();
|
2023-02-24 19:29:07 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|