Migrate assets to use Webpacker

This commit is contained in:
Albert Yi
2018-07-06 16:41:08 -07:00
parent 95b72f5f5c
commit 6fa0ae2cf1
175 changed files with 11518 additions and 3726 deletions

View File

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