diff --git a/app/views/favorites/create.js.erb b/app/views/favorites/create.js.erb index 6f7fcaf7f..505a7461f 100644 --- a/app/views/favorites/create.js.erb +++ b/app/views/favorites/create.js.erb @@ -4,4 +4,5 @@ $("a#add-to-favorites").hide(); $("a#remove-from-favorites").show(); $("#score-for-post-<%= @post.id %>").html(<%= @post.score %>); + $("#favcount-for-post-<%= @post.id %>").html(<%= @post.fav_count %>); <% end %> diff --git a/app/views/favorites/destroy.js.erb b/app/views/favorites/destroy.js.erb index 3394f959c..0ec951fab 100644 --- a/app/views/favorites/destroy.js.erb +++ b/app/views/favorites/destroy.js.erb @@ -1,3 +1,4 @@ $("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 %>); diff --git a/app/views/posts/partials/show/_information.html.erb b/app/views/posts/partials/show/_information.html.erb index 1d0dfa1ce..5c0c01d4f 100644 --- a/app/views/posts/partials/show/_information.html.erb +++ b/app/views/posts/partials/show/_information.html.erb @@ -14,7 +14,7 @@