From fc459f7e4437755f4380d271ba8d6c979f39f7de Mon Sep 17 00:00:00 2001 From: Ibrahim Awwal Date: Tue, 11 Sep 2012 05:08:55 -0700 Subject: [PATCH] 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. --- .../coffee/src/discussion/views/thread_response_view.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lms/static/coffee/src/discussion/views/thread_response_view.coffee b/lms/static/coffee/src/discussion/views/thread_response_view.coffee index dac30401d8..feedbb6f6d 100644 --- a/lms/static/coffee/src/discussion/views/thread_response_view.coffee +++ b/lms/static/coffee/src/discussion/views/thread_response_view.coffee @@ -34,6 +34,9 @@ if Backbone? view = new ResponseCommentView(model: comment) view.render() @$el.find(".comments li:last").before(view.el) + children = new Comments(comment.get('children')) + children.each @renderComment + toggleVote: (event) -> event.preventDefault()