Skip to content

Commit

Permalink
Merge pull request #3145 from gdpelican/bugfix/like-toggle
Browse files Browse the repository at this point in the history
Rerender actions on like/dislike
  • Loading branch information
eviltrout committed Jan 29, 2015
2 parents 6556e1c + 3b2dcf1 commit 52d0493
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/discourse/views/post-menu.js.es6
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default Discourse.View.extend(StringBuffer, {

rerenderTriggers: [
'post.deleted_at',
'post.like_count',
'post.reply_count',
'post.showRepliesBelow',
'post.can_delete',
Expand Down
1 change: 1 addition & 0 deletions app/serializers/post_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class PostSerializer < BasicPostSerializer
attributes :post_number,
:post_type,
:updated_at,
:like_count,
:reply_count,
:reply_to_post_number,
:quote_count,
Expand Down

0 comments on commit 52d0493

Please sign in to comment.