Commit a40c8fad by Ibrahim Awwal

Fix inline thread rendering when expanding and contracting.

parent b33ef47d
......@@ -7,7 +7,6 @@ if Backbone?
item.discussion = @
@comparator = @sortByDateRecentFirst
@on "thread:remove", (thread) =>
console.log "remove triggered"
@remove(thread)
find: (id) ->
......
......@@ -194,6 +194,7 @@ class @DiscussionThreadInlineView extends DiscussionContentView
expandPost: (event) ->
@expanded = true
@$el.find('.post-body').html(@model.get('body'))
@convertMath()
@$el.find('.expand-post').hide()
@$el.find('.collapse-post').show()
@$el.find('.post-extended-content').show()
......@@ -204,6 +205,7 @@ class @DiscussionThreadInlineView extends DiscussionContentView
collapsePost: (event) ->
@expanded = false
@$el.find('.post-body').html(@model.get('abbreviatedBody'))
@convertMath()
@$el.find('.collapse-post').hide()
@$el.find('.post-extended-content').hide()
@$el.find('.expand-post').show()
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