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",

View File

@@ -136,11 +136,8 @@
--post-mode-menu-remove-fav-background: #FFA;
--post-mode-menu-vote-up-background: #AFA;
--post-mode-menu-vote-down-background: #FAA;
--post-mode-menu-lock-rating-background: #AA3;
--post-mode-menu-lock-note-background: #3AA;
--post-mode-menu-approve-background: #48C;
--post-mode-menu-translation-background: #5CD;
--post-mode-menu-ban-background: #F33;
--tag-count-color: var(--muted-text-color);
--low-post-count-color: red;
@@ -382,11 +379,8 @@ body[data-current-user-theme="dark"] {
--post-mode-menu-remove-fav-background: var(--yellow-0);
--post-mode-menu-vote-up-background: var(--red-0);
--post-mode-menu-vote-down-background: var(--red-0);
--post-mode-menu-lock-rating-background: var(--purple-0);
--post-mode-menu-lock-note-background: var(--purple-0);
--post-mode-menu-approve-background: var(--aqua-0);
--post-mode-menu-translation-background: var(--blue-0);
--post-mode-menu-ban-background: var(--red-1);
--post-notice-border: 1px solid var(--grey-3);
--post-search-notice-background: var(--grey-3);

View File

@@ -22,14 +22,6 @@ body.mode-vote-down {
background-color: var(--post-mode-menu-vote-down-background);
}
body.mode-lock-rating {
background-color: var(--post-mode-menu-lock-rating-background);
}
body.mode-lock-note {
background-color: var(--post-mode-menu-lock-note-background);
}
body.mode-approve {
background-color: var(--post-mode-menu-approve-background);
}
@@ -38,10 +30,6 @@ body.mode-translation {
background-color: var(--post-mode-menu-translation-background);
}
body.mode-ban {
background-color: var(--post-mode-menu-ban-background);
}
#page, #top, #page-footer {
background-color: var(--body-background-color);
}