Fix approval notice not displaying if using shift+o shortcut
This commit is contained in:
@@ -514,8 +514,10 @@
|
|||||||
Danbooru.error("Error: " + data.reason);
|
Danbooru.error("Error: " + data.reason);
|
||||||
} else {
|
} else {
|
||||||
var $post = $("#post_" + post_id);
|
var $post = $("#post_" + post_id);
|
||||||
$post.data("flags", $post.data("flags").replace(/pending/, ""));
|
if ($post.length) {
|
||||||
$post.removeClass("post-status-pending");
|
$post.data("flags", $post.data("flags").replace(/pending/, ""));
|
||||||
|
$post.removeClass("post-status-pending");
|
||||||
|
}
|
||||||
Danbooru.notice("Approved post #" + post_id);
|
Danbooru.notice("Approved post #" + post_id);
|
||||||
$("#pending-approval-notice").hide();
|
$("#pending-approval-notice").hide();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user