From 77ea54e997d9c121e7eda6ce9dd1e2a57ff9406d Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Mon, 1 Jun 2015 19:10:23 -0700 Subject: [PATCH] Showing comment-less replies even if no comments. --- media/js/newsblur/views/story_comments_view.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/media/js/newsblur/views/story_comments_view.js b/media/js/newsblur/views/story_comments_view.js index b011fd8ce..bf1d605fa 100644 --- a/media/js/newsblur/views/story_comments_view.js +++ b/media/js/newsblur/views/story_comments_view.js @@ -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(); }