2023-03-18 14:59:11 +00:00
|
|
|
function approve_emoji(t, name) {
|
2023-03-18 13:34:04 +00:00
|
|
|
postToast(t, `/admin/approve/emoji/${name}`,
|
2022-12-29 14:20:27 +00:00
|
|
|
{
|
2023-10-02 03:40:30 +00:00
|
|
|
"comment": document.getElementById(`${name}-comment`).value,
|
2022-12-29 14:20:27 +00:00
|
|
|
"tags": document.getElementById(`${name}-tags`).value,
|
|
|
|
"name": document.getElementById(`${name}-name`).value,
|
2023-03-18 13:34:04 +00:00
|
|
|
"kind": document.getElementById(`${name}-kind`).value,
|
2024-02-16 17:02:43 +00:00
|
|
|
"author": document.getElementById(`${name}-author`).value,
|
2023-10-05 10:19:50 +00:00
|
|
|
"nsfw": document.getElementById(`${name}-nsfw`).checked,
|
2022-12-29 14:20:27 +00:00
|
|
|
},
|
|
|
|
() => {
|
2023-03-18 14:57:45 +00:00
|
|
|
document.getElementById(`${name}-emoji`).remove()
|
2022-12-29 14:20:27 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-03-18 14:53:00 +00:00
|
|
|
function remove_emoji(t, name) {
|
2023-03-18 13:34:04 +00:00
|
|
|
postToast(t, `/remove/emoji/${name}`,
|
2022-12-29 14:20:27 +00:00
|
|
|
{
|
2023-10-02 03:40:30 +00:00
|
|
|
"comment": document.getElementById(`${name}-comment`).value,
|
2022-12-29 14:20:27 +00:00
|
|
|
},
|
|
|
|
() => {
|
2023-03-18 14:57:45 +00:00
|
|
|
document.getElementById(`${name}-emoji`).remove()
|
2022-12-29 14:20:27 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|