mode menu: refactor favorite and vote options.

This commit is contained in:
evazion
2020-02-20 03:40:01 -06:00
parent c89c7ccc63
commit 610ad9e119
3 changed files with 4 additions and 50 deletions

View File

@@ -498,14 +498,6 @@ Post.update_data = function(data) {
}
}
Post.vote = function(score, id) {
Utility.notice("Voting...");
$.post("/posts/" + id + "/votes.js", {
score: score
});
}
Post.tag = function(post_id, tags) {
const tag_string = (Array.isArray(tags) ? tags.join(" ") : String(tags));
Post.update(post_id, { "post[old_tag_string]": "", "post[tag_string]": tag_string });