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 @error %>
Danbooru.notice("<%= j @error.to_s %>");
$(window).trigger("danbooru:notice", "<%= j @error.to_s %>");
<% else %>
Danbooru.notice("Vote saved");
$(window).trigger("danbooru:notice", "Vote saved");
$("#score-for-post-<%= @post.id %>").html(<%= @post.score %>);
<% end %>

View File

@@ -1,7 +1,7 @@
<% if @error %>
Danbooru.notice("<%= j @error.to_s %>");
$(window).trigger("danbooru:notice", "<%= j @error.to_s %>");
<% else %>
Danbooru.notice("Unvoted successfully");
$(window).trigger("danbooru:notice", "Unvoted successfully");
$("#score-for-post-<%= @post.id %>").html(<%= @post.score %>);
<% end %>
$("#vote-links-for-post-<%= @post.id %>").show();