Don't collapse comment content in the SPV.
This commit is contained in:
parent
c6e2a91359
commit
690e47c946
2 changed files with 15 additions and 0 deletions
|
|
@ -33,3 +33,8 @@ app.views.Comment = app.views.Content.extend({
|
||||||
return app.currentUser.authenticated() && (this.ownComment() || this.postOwner())
|
return app.currentUser.authenticated() && (this.ownComment() || this.postOwner())
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.views.ExpandedComment = app.views.Comment.extend({
|
||||||
|
postRenderTemplate : function(){
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,16 @@ app.views.SinglePostCommentStream = app.views.CommentStream.extend({
|
||||||
this.$(".new_comment_form_wrapper").removeClass('hidden')
|
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(){
|
presenter: function(){
|
||||||
return _.extend(this.defaultPresenter(), {
|
return _.extend(this.defaultPresenter(), {
|
||||||
moreCommentsCount : 0,
|
moreCommentsCount : 0,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue