fixes #1596
This commit is contained in:
@@ -5,5 +5,11 @@
|
||||
$("a#remove-from-favorites").show();
|
||||
$("#score-for-post-<%= @post.id %>").html(<%= @post.score %>);
|
||||
$("#favcount-for-post-<%= @post.id %>").html(<%= @post.fav_count %>);
|
||||
<% if CurrentUser.is_gold? %>
|
||||
$("#favlist").html("<%= escape_javascript(post_favlist(@post)) %>");
|
||||
if (!$("#favlist").is(":visible")) {
|
||||
$("#show-favlist-link").show();
|
||||
}
|
||||
<% end %>
|
||||
Danbooru.notice("You have favorited this post");
|
||||
<% end %>
|
||||
|
||||
@@ -2,4 +2,10 @@ $("a#add-to-favorites").show();
|
||||
$("a#remove-from-favorites").hide();
|
||||
$("#score-for-post-<%= @post.id %>").html(<%= @post.score %>);
|
||||
$("#favcount-for-post-<%= @post.id %>").html(<%= @post.fav_count %>);
|
||||
<% if CurrentUser.is_gold? %>
|
||||
$("#favlist").html("<%= escape_javascript(post_favlist(@post)) %>");
|
||||
<% if @post.fav_count == 0 %>
|
||||
$("#show-favlist-link, #hide-favlist-link, #favlist").hide();
|
||||
<% end %>
|
||||
<% end %>
|
||||
Danbooru.notice("You have unfavorited this post");
|
||||
|
||||
Reference in New Issue
Block a user