MarseyWorld/files/assets/js/submit_emojis.js

23 lines
492 B
JavaScript
Raw Normal View History

2023-03-18 14:53:00 +00:00
function remove_emoji(t, name) {
postToast(t, `/admin/approve/emoji/${name}`,
{
"tags": document.getElementById(`${name}-tags`).value,
"name": document.getElementById(`${name}-name`).value,
"kind": document.getElementById(`${name}-kind`).value,
},
() => {
document.getElementById(`${name}-marsey`).remove()
}
);
}
2023-03-18 14:53:00 +00:00
function remove_emoji(t, name) {
postToast(t, `/remove/emoji/${name}`,
{
},
() => {
document.getElementById(`${name}-marsey`).remove()
}
);
}