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,7 +1,7 @@
<% if @post.errors.any? %>
Danbooru.error("<%= j @post.errors.full_messages.join('; ') %>");
$(window).trigger("danbooru:error", "<%= j @post.errors.full_messages.join('; ') %>");
<% elsif @error %>
Danbooru.error("<%= j @error.to_s %>");
$(window).trigger("danbooru:error", "<%= j @error.to_s %>");
<% else %>
Danbooru.notice("Post was permanently deleted");
$(window).trigger("danbooru:notice", "Post was permanently deleted");
<% end %>

View File

@@ -1,3 +1,3 @@
$("#c-posts #delete").show();
$("#c-posts #undelete").hide();
Danbooru.notice("Post was undeleted");
$(window).trigger("danbooru:notice", "Post was undeleted");