Migrate assets to use Webpacker
This commit is contained in:
@@ -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 %>
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user