mode menu: remove upvote/downvote mode.

Remove the upvote and downvote modes from the post mode menu. These are
unnecessary now since you can use the vote buttons beneath the thumbnails.
This commit is contained in:
evazion
2021-11-21 01:51:57 -06:00
parent 6b9e1181e5
commit 35c97d0836
2 changed files with 0 additions and 10 deletions

View File

@@ -25,10 +25,6 @@ PostModeMenu.show_notice = function(mode, tag_script_index = 0) {
Utility.notice("Switched to unfavorite mode. Click a post to unfavorite it.");
} else if (mode === "edit") {
Utility.notice("Switched to edit mode. Click a post to edit it.");
} else if (mode === 'vote-down') {
Utility.notice("Switched to downvote mode. Click a post to downvote it.");
} else if (mode === 'vote-up') {
Utility.notice("Switched to upvote mode. Click a post to upvote it.");
} else if (mode === "tag-script") {
Utility.notice(`Switched to tag script #${tag_script_index}. To switch tag scripts, use the number keys.`);
}
@@ -149,10 +145,6 @@ PostModeMenu.click = function(e) {
Post.tag(post_id, "-fav:me");
} else if (s === "edit") {
PostModeMenu.open_edit(post_id);
} else if (s === 'vote-down') {
Post.tag(post_id, "downvote:me");
} else if (s === 'vote-up') {
Post.tag(post_id, "upvote:me");
} 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

@@ -8,8 +8,6 @@
<option value="tag-script">Tag script</option>
<option value="add-fav">Favorite</option>
<option value="remove-fav">Unfavorite</option>
<option value="vote-up">Vote up</option>
<option value="vote-down">Vote down</option>
</select>
</form>
<input id="tag-script-field" data-autocomplete="tag-edit" placeholder="Enter tag script" style="display: none; margin-top: 0.5em;">