Commit 39210fa9 by Vik Paruchuri

Move point where input box is disabled

parent d5702fc7
......@@ -59,10 +59,10 @@ class @SelfAssessment
save_answer: (event) =>
event.preventDefault()
if @state == 'initial'
@answer_area.attr("disabled",true)
data = {'student_answer' : @answer_area.val()}
$.postWithPrefix "#{@ajax_url}/save_answer", data, (response) =>
if response.success
@answer_area.attr("disabled",true)
@rubric_wrapper.html(response.rubric_html)
@state = 'assessing'
@find_assessment_elements()
......
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