Add remove parent post mode

This commit is contained in:
Kira 2020-01-26 06:09:08 -08:00
parent c04330473e
commit 099e618e7e
2 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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 %>