Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复点击回复提醒后回复数为空的问题 #812

Closed
wants to merge 1 commit into from
Closed

修复点击回复提醒后回复数为空的问题 #812

wants to merge 1 commit into from

Conversation

chenhengjie123
Copy link
Contributor

修复话题出现新回复后,点击新回复提示后 sidebar 的回复数为空的问题。

具体问题描述请查看: https://testerhome.com/topics/6489

修复话题出现新回复后,点击新回复提示后 sidebar 的回复数为空的问题。

具体问题描述请查看: https://testerhome.com/topics/6489
@codecov-io
Copy link

Current coverage is 96.37% (diff: 100%)

Merging #812 into master will not change coverage

@@             master       #812   diff @@
==========================================
  Files           145        145          
  Lines          5568       5568          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           5366       5366          
  Misses          202        202          
  Partials          0          0          

Powered by Codecov. Last update 236a50d...f0031d6

$("#replies .total b").text('<%= @replies_count %>');
$('#topic-sidebar .total b').text('<%= @replies_count %>');
$("#replies .total b").text('<%= @topic.replies_count %>');
$('#topic-sidebar .total b').text('<%= @topic.replies_count %>');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原来 @replies_count 的逻辑是 @topic.replies_count + 1

@huacnlee huacnlee closed this in 968e533 Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants