Fix #4318: Flags and appeals should reload page.

This commit is contained in:
evazion
2020-03-03 22:38:43 -06:00
parent 266e4054b0
commit 95e11e0ffc
4 changed files with 4 additions and 14 deletions

View File

@@ -1,8 +1 @@
var errors = <%= @post_flag.errors.full_messages.to_json.html_safe %>;
if (errors.length > 0) {
Danbooru.error(errors.join("; "));
} else {
Danbooru.notice("Post flagged");
$("a#approve").show();
$("a#disapprove").show();
}
location.reload();