diff --git a/files/assets/js/comments_admin.js b/files/assets/js/comments_admin.js index 73dd4a613..e86612298 100644 --- a/files/assets/js/comments_admin.js +++ b/files/assets/js/comments_admin.js @@ -1,7 +1,7 @@ -function removeComment(post_id,button1,button2,cls) { +function removeComment(t,post_id,button1,button2,cls) { url="/remove_comment/"+post_id - post(url) + post_toast(t,url) if (window.location.pathname == '/admin/reported/comments') { @@ -20,10 +20,10 @@ function removeComment(post_id,button1,button2,cls) { } }; -function approveComment(post_id,button1,button2,cls) { +function approveComment(t,post_id,button1,button2,cls) { url="/approve_comment/"+post_id - post(url) + post_toast(t,url) if (window.location.pathname == '/admin/reported/comments') { diff --git a/files/templates/comments.html b/files/templates/comments.html index a65265f36..5b23a59fb 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -459,10 +459,10 @@ {% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} - + {% if v.id != c.author.id %} - + {% endif %} {% endif %} @@ -707,10 +707,10 @@ {% endif %} {% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} {% if v.id != c.author.id %} - Remove + Remove {% endif %} - Approve + Approve {% endif %} {% if c.oauth_app and v.admin_level >= PERMS['APPS_MODERATION'] %}