diff --git a/app/views/likes/_likes_container.haml b/app/views/likes/_likes_container.haml index d8e746940..139e371c6 100644 --- a/app/views/likes/_likes_container.haml +++ b/app/views/likes/_likes_container.haml @@ -6,7 +6,7 @@ - if likes_count > 0 = image_tag('icons/heart.svg') - if target_type == "Comment" - = t('likes.likes.people_like_this_comment', :count => likes_count) + = link_to t('likes.likes.people_like_this_comment', :count => likes_count), comment_likes_path(target_id), :class => "expand_likes" - else = link_to t('likes.likes.people_like_this', :count => likes_count), post_likes_path(target_id), :class => "expand_likes" %span.hidden.likes_list diff --git a/public/javascripts/content-updater.js b/public/javascripts/content-updater.js index b324f7fbc..199f2f7ce 100644 --- a/public/javascripts/content-updater.js +++ b/public/javascripts/content-updater.js @@ -47,7 +47,7 @@ var ContentUpdater = { }, addLikesToPost: function(postGUID, html) { - var likesContainer = $(".likes.on_post .likes_container", "#" + postGUID) + var likesContainer = $(".likes_container:first", "#" + postGUID) .fadeOut("fast") .html(html);