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 0c7f13f919..6a25d1d852 100644 --- a/lms/static/coffee/src/discussion/views/thread_response_view.coffee +++ b/lms/static/coffee/src/discussion/views/thread_response_view.coffee @@ -36,10 +36,14 @@ if Backbone? hideEditorChrome: -> @$('.wmd-button-row').hide() @$('.wmd-preview').hide() + @$('.wmd-input').css(height: '50px') + @$('.comment-post-control').hide() showEditorChrome: -> @$('.wmd-button-row').show() @$('.wmd-preview').show() + @$('.comment-post-control').show() + @$('.wmd-input').css(height: '125px') renderComments: -> comments = new Comments() @@ -69,6 +73,7 @@ if Backbone? @setWmdContent("comment-body", "") comment = new Comment(body: body, created_at: (new Date()).toISOString(), username: window.user.get("username"), user_id: window.user.get("id"), id:"unsaved") view = @renderComment(comment) + @hideEditorChrome() @trigger "comment:add", comment DiscussionUtil.safeAjax diff --git a/lms/static/sass/_discussion.scss b/lms/static/sass/_discussion.scss index abeb9f48bc..dcad390565 100644 --- a/lms/static/sass/_discussion.scss +++ b/lms/static/sass/_discussion.scss @@ -1484,12 +1484,28 @@ body.discussion { .comment-form { background: #eee; + @include clearfix; .comment-form-input { padding: 5px 10px; background-color: #fff; font-size: 14px; } + + .discussion-submit-comment { + @include blue-button; + float: left; + margin-top: 8px; + } + + .wmd-input { + height: 40px; + } + + .discussion-errors { + margin: 0px; + } + } p {