controllers: move /moderator/post/disapprovals to /post_disapprovals.

This commit is contained in:
evazion
2020-02-15 07:08:44 -06:00
parent 60ff2ae929
commit a214989447
11 changed files with 77 additions and 89 deletions

View File

@@ -0,0 +1,11 @@
<% if @post_disapproval.errors.any? %>
Danbooru.error("Error: " + <%= @post_disapproval.errors.full_messages.join("; ").to_json.html_safe %>);
<% else %>
if ($("#c-posts #a-show").length) {
location.reload();
} else if ($("#c-moderator-post-queues").length) {
$("#c-moderator-post-queues #post-<%= @post_disapproval.post.id %>").hide();
$(window).trigger("danbooru:modqueue_increment_processed");
Danbooru.notice("Post was hidden");
}
<% end %>