forked from e621ng/e621ng
Add remove parent post mode
This commit is contained in:
parent
c04330473e
commit
099e618e7e
@ -215,6 +215,8 @@ PostModeMenu.click = function(e) {
|
||||
Post.undelete(post_id);
|
||||
} else if (s === 'approve') {
|
||||
Post.approve(post_id);
|
||||
} else if (s === 'remove-parent') {
|
||||
Post.update(post_id, {"post[parent_id]": ""});
|
||||
} else if (s === "tag-script") {
|
||||
const current_script_id = LS.get("current_tag_script_id");
|
||||
const tag_script = LS.get("tag-script-" + current_script_id);
|
||||
|
@ -17,6 +17,7 @@
|
||||
<option value="tag-script">Tag script</option>
|
||||
<% end %>
|
||||
<% if CurrentUser.is_janitor? %>
|
||||
<option value="remove-parent">Remove Parent</option>
|
||||
<option value="lock-rating">Lock rating</option>
|
||||
<option value="lock-note">Lock notes</option>
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user