Reload page when successfully flagging a post through JS

This commit is contained in:
Kira 2019-08-02 15:26:51 -07:00
parent 0b92d9c2f9
commit 977c191f82

View File

@ -3,6 +3,7 @@ if (errors.length > 0) {
$(window).trigger("danbooru:error", errors.join("; "));
} else {
$(window).trigger("danbooru:notice", "Post flagged");
location.reload();
$("a#approve").show();
$("a#disapprove").show();
}