Commit 98fb58bd by Ibrahim Awwal

Displays deeply nested comments inline.

This just puts them in three traversal order rather than chronological order.
Not sure which makes the most sense, but I'll implement both ways.
parent 1eaafb3d
...@@ -34,6 +34,9 @@ if Backbone? ...@@ -34,6 +34,9 @@ if Backbone?
view = new ResponseCommentView(model: comment) view = new ResponseCommentView(model: comment)
view.render() view.render()
@$el.find(".comments li:last").before(view.el) @$el.find(".comments li:last").before(view.el)
children = new Comments(comment.get('children'))
children.each @renderComment
toggleVote: (event) -> toggleVote: (event) ->
event.preventDefault() event.preventDefault()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment