Files
danbooru/app/views/post_disapprovals/create.js.erb
evazion 659c31f5cd Fix #3905: Unable to hide Mod Queue posts that were hidden in a separate tab.
Don't show "You have already hidden this post" and "Post is already
active" errors when disapproving a post. Just hide the post anyway
regardless of whether we literally created a post disapproval record.
2020-04-30 20:18:44 -05:00

7 lines
201 B
Plaintext

if ($("#c-posts #a-show").length) {
location.reload();
} else if ($("#c-modqueue").length) {
$("#c-modqueue #post-<%= @post_disapproval.post.id %>").hide();
Danbooru.notice("Post was hidden");
}