This commit is contained in:
Flummi
2021-12-26 23:11:16 +01:00
parent bca0da0b18
commit bf437efeaf
14 changed files with 37 additions and 38 deletions

View File

@ -47,8 +47,6 @@ const flash = ({ type, msg }) => {
if(!confirm("Do you really want to delete this tag?"))
return;
const tagid = +e.target.parentElement.dataset.tagid;
/*if(!tags.includes(tag))
return alert("wtf");*/
const res = await deleteTag(postid, tagid);
if(!res.success)
return alert("uff");
@ -89,7 +87,7 @@ const flash = ({ type, msg }) => {
const span = document.createElement("span");
span.classList.add("badge", "badge-light", "mr-2");
span.title = tag.user;
span.setAttribute('tooltip', tag.user);
span.dataset.tagid = tag.id;
if(tag.tag == "sfw") {