Files
danbooru/app/views/post_flags/create.js.erb
2011-11-03 16:30:06 -04:00

9 lines
232 B
Plaintext

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();
}