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