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,5 +1,5 @@
<% if @error_msg %>
Danbooru.error("<%= @error_msg %>");
$(window).trigger("danbooru:error", "<%= @error_msg %>");
<% else %>
$("#add-to-favorites").hide();
$("#add-fav-button").hide();
@@ -13,5 +13,5 @@
$("#show-favlist-link").show();
}
<% end %>
Danbooru.notice("You have favorited this post");
$(window).trigger("danbooru:notice", "You have favorited this post");
<% end %>

View File

@@ -10,4 +10,4 @@ $("#favcount-for-post-<%= @post.id %>").html(<%= @post.fav_count %>);
$("#show-favlist-link, #hide-favlist-link, #favlist").hide();
<% end %>
<% end %>
Danbooru.notice("You have unfavorited this post");
$(window).trigger("danbooru:notice", "You have unfavorited this post");