Don't collapse comment content in the SPV.

This commit is contained in:
Roger Braun 2013-08-18 17:14:49 +02:00
parent c6e2a91359
commit 690e47c946
2 changed files with 15 additions and 0 deletions

View file

@ -33,3 +33,8 @@ app.views.Comment = app.views.Content.extend({
return app.currentUser.authenticated() && (this.ownComment() || this.postOwner())
}
});
app.views.ExpandedComment = app.views.Comment.extend({
postRenderTemplate : function(){
}
});

View file

@ -5,6 +5,16 @@ app.views.SinglePostCommentStream = app.views.CommentStream.extend({
this.$(".new_comment_form_wrapper").removeClass('hidden')
},
appendComment: function(comment) {
// Set the post as the comment's parent, so we can check
// on post ownership in the Comment view.
comment.set({parent : this.model.toJSON()})
this.$(".comments").append(new app.views.ExpandedComment({
model: comment
}).render().el);
},
presenter: function(){
return _.extend(this.defaultPresenter(), {
moreCommentsCount : 0,