Commit bc8244b7 by Vik Paruchuri

Rename reset to try again, hide and disable submit buttons

parent 4f3ec68f
......@@ -357,8 +357,8 @@ class @CombinedOpenEnded
save_answer: (event) =>
@submit_button.attr("disabled",true)
event.preventDefault()
@submit_button.hide()
event.preventDefault()
@answer_area.attr("disabled", true)
max_filesize = 2*1000*1000 #2MB
pre_can_upload_files = @can_upload_files
......@@ -404,6 +404,8 @@ class @CombinedOpenEnded
@is_ctrl=false
save_assessment: (event) =>
@submit_button.attr("disabled",true)
@submit_button.hide()
event.preventDefault()
if @child_state == 'assessing' && @rub.check_complete()
checked_assessment = @rub.get_total_score()
......
......@@ -322,10 +322,12 @@ class @PeerGradingProblem
submit_calibration_essay: ()=>
data = @construct_data()
@submit_button.hide()
@backend.post('save_calibration_essay', data, @calibration_callback)
submit_grade: () =>
data = @construct_data()
@submit_button.hide()
@backend.post('save_grade', data, @submission_callback)
......@@ -448,6 +450,7 @@ class @PeerGradingProblem
@feedback_area.val("")
@submit_button.show()
@submit_button.unbind('click')
@submit_button.click @submit_calibration_essay
@scroll_to_top()
......@@ -476,7 +479,8 @@ class @PeerGradingProblem
@flag_student_container.show()
@answer_unknown_container.show()
@feedback_area.val("")
@submit_button.show()
@submit_button.unbind('click')
@submit_button.click @submit_grade
@scroll_to_top()
......
......@@ -39,7 +39,7 @@
</div>
<div class="oe-tools response-tools">
<span class="oe-tools-label"></span>
<input type="button" value="${_('Reset')}" class="reset-button" name="reset"/>
<input type="button" value="${_('Try Again')}" class="reset-button" name="reset"/>
</div>
</div>
......
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