mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Showing comment-less replies even if no comments.
This commit is contained in:
parent
0b0e368649
commit
77ea54e997
1 changed files with 3 additions and 2 deletions
|
@ -19,7 +19,8 @@ NEWSBLUR.Views.StoryCommentsView = Backbone.View.extend({
|
|||
this.render_comments_friends();
|
||||
this.render_shares_friends();
|
||||
this.render_comments_public();
|
||||
this.$el.toggleClass('NB-hidden', !this.model.get('comment_count'));
|
||||
this.$el.toggleClass('NB-hidden', (!this.model.get('comment_count') &&
|
||||
!this.model.get('share_count_friends')));
|
||||
}
|
||||
|
||||
return this;
|
||||
|
@ -42,7 +43,7 @@ NEWSBLUR.Views.StoryCommentsView = Backbone.View.extend({
|
|||
var $thumb = NEWSBLUR.Views.ProfileThumb.create(user_id).render().el;
|
||||
$comments_public.append($thumb);
|
||||
});
|
||||
if (!this.model.friend_comments.length && !this.model.public_comments.length) {
|
||||
if (!this.model.friend_comments.length && !this.model.public_comments.length && !this.model.friend_shares.length) {
|
||||
this.$el.hide();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue