controllers: move /moderator/post/disapprovals to /post_disapprovals.
This commit is contained in:
11
app/views/post_disapprovals/create.js.erb
Normal file
11
app/views/post_disapprovals/create.js.erb
Normal 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 %>
|
||||
Reference in New Issue
Block a user