From f788de17fd7e02be0fbe6b5d361a6140b23aac50 Mon Sep 17 00:00:00 2001 From: Dan Hansen Date: Tue, 30 Aug 2011 21:13:12 -0500 Subject: [PATCH] allow the user to see who has liked a specific comment. --- app/views/likes/_likes_container.haml | 2 +- public/javascripts/content-updater.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);