mode menu: refactor favorite and vote options.
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user