Commit 1f5aa5e6 by Rocky Duan

fixed new post editor position

parent 28c1352c
......@@ -68,7 +68,8 @@ initializeFollowDiscussion = (discussion) ->
$(elem).hide()
else
view = { discussion_id: id }
$discussionNonContent.append Mustache.render Discussion.newPostTemplate, view
$newPostButton = $local(".discussion-new-post")
$newPostButton.after Mustache.render Discussion.newPostTemplate, view
newPostBody = $discussion.find(".new-post-body")
if newPostBody.length
Discussion.makeWmdEditor $discussion, $local, "new-post-body"
......
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