diff --git a/files/assets/js/admin/comments.js b/files/assets/js/admin/comments.js index fdf8fdd58..3a6df7a4b 100644 --- a/files/assets/js/admin/comments.js +++ b/files/assets/js/admin/comments.js @@ -47,13 +47,3 @@ function approveComment(t,comment_id,button1,button2,cls) { } ); } - -function delReportComment(t, url) { - postToast(t, url, - { - }, - () => { - t.parentElement.remove() - } - ); -} diff --git a/files/assets/js/admin/core.js b/files/assets/js/admin/core.js index 8113b24d8..b8a64e502 100644 --- a/files/assets/js/admin/core.js +++ b/files/assets/js/admin/core.js @@ -7,3 +7,13 @@ function unchud_or_unban(t, url) { t.nextElementSibling.classList.remove('d-none'); }); } + +function delReport(t, url) { + postToast(t, url, + { + }, + () => { + t.parentElement.remove() + } + ); +} diff --git a/files/assets/js/admin/submission.js b/files/assets/js/admin/submission.js index 58bde8263..fe3c0f62b 100644 --- a/files/assets/js/admin/submission.js +++ b/files/assets/js/admin/submission.js @@ -40,13 +40,3 @@ function approvePost(t,post_id,button1,button2,cls) { } ); } - -function delReportPost(t, url) { - postToast(t, url, - { - }, - () => { - t.parentElement.remove() - } - ); -} diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index e79bc5dd5..5112a1f11 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -210,7 +210,7 @@ {{f.user.username}} {% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level >= PERMS['FLAGS_REMOVE'] %} - + {% endif %} {% endfor %}