Commit f3f509da by Vik Paruchuri

Fix input area styling

parent 63d4ac8c
...@@ -442,12 +442,13 @@ section.open-ended-child { ...@@ -442,12 +442,13 @@ section.open-ended-child {
margin: 10px; margin: 10px;
} }
span.short-form-response { div.short-form-response {
padding: 9px;
background: #F6F6F6; background: #F6F6F6;
border: 1px solid #ddd; border: 1px solid #ddd;
border-top: 0; border-top: 0;
margin-bottom: 20px; margin-bottom: 20px;
overflow-y: auto;
height: 200px;
@include clearfix; @include clearfix;
} }
......
...@@ -351,5 +351,5 @@ class @CombinedOpenEnded ...@@ -351,5 +351,5 @@ class @CombinedOpenEnded
answer_id = @answer_area.attr('id') answer_id = @answer_area.attr('id')
answer_val = @answer_area.val() answer_val = @answer_area.val()
new_text = '' new_text = ''
new_text = "<span class='#{answer_class}' id='#{answer_id}'>#{answer_val}</span>" new_text = "<div class='#{answer_class}' id='#{answer_id}'>#{answer_val}</div>"
@answer_area.replaceWith(new_text) @answer_area.replaceWith(new_text)
...@@ -44,13 +44,14 @@ class OpenEnded ...@@ -44,13 +44,14 @@ class OpenEnded
.error => callback({success: false, error: "Error occured while performing this operation"}) .error => callback({success: false, error: "Error occured while performing this operation"})
after_action_wrapper: (target, action_type) -> after_action_wrapper: (target, action_type) ->
tr_parent = target.parent().parent()
tr_children = tr_parent.children()
action_taken = tr_children[4].firstElementChild
action_taken.innerText = "#{action_type} done for student."
return @handle_after_action return @handle_after_action
handle_after_action: (data) -> handle_after_action: (data) ->
tr_parent = target.parent().parent() blah = "blah"
tr_children = tr_parent.children()
action_taken = tr_children[4].children()[0]
action_taken.replaceWith('<div class="action-taken">#{action_type} done for student.</div>')
gentle_alert: (msg) => gentle_alert: (msg) =>
if $('.message-container').length if $('.message-container').length
......
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