mode menu: remove post ban, rating lock, note lock options.

This commit is contained in:
evazion
2020-02-20 03:37:26 -06:00
parent 0ad42d23c9
commit c89c7ccc63
6 changed files with 0 additions and 47 deletions

View File

@@ -165,14 +165,8 @@ PostModeMenu.click = function(e) {
Post.vote("down", post_id);
} else if (s === 'vote-up') {
Post.vote("up", post_id);
} else if (s === 'lock-rating') {
Post.update(post_id, {"post[is_rating_locked]": "1"});
} else if (s === 'lock-note') {
Post.update(post_id, {"post[is_note_locked]": "1"});
} else if (s === 'approve') {
Post.approve(post_id);
} else if (s === 'ban') {
Post.ban(post_id);
} else if (s === "tag-script") {
var current_script_id = localStorage.getItem("current_tag_script_id");
var tag_script = localStorage.getItem("tag-script-" + current_script_id);

View File

@@ -529,22 +529,6 @@ Post.update = function(post_id, params) {
});
}
Post.ban = function(post_id) {
$.ajax({
type: "POST",
url: "/moderator/post/posts/" + post_id + "/ban.js",
data: {
commit: "Ban"
},
success: function(data) {
$("#post_" + post_id).remove();
},
error: function(data) {
Utility.error(`There was an error updating <a href="/posts/${post_id}">post #${post_id}</a>`);
}
});
}
Post.approve = function(post_id) {
$.post(
"/moderator/post/approval.json",