Commit 48b0e570 by Vik Paruchuri

Disable submit buttons until rubric totally filled out

parent 8248c331
......@@ -300,7 +300,7 @@ class @CombinedOpenEnded
@hide_file_upload()
@submit_button.prop('value', 'Submit assessment')
@submit_button.click @save_assessment
@submit_button.attr("disabled",false)
@submit_button.attr("disabled",true)
if @child_type == "openended"
@submit_button.hide()
@queueing()
......
......@@ -453,6 +453,7 @@ class @PeerGradingProblem
@submit_button.show()
@submit_button.unbind('click')
@submit_button.click @submit_calibration_essay
@submit_button.attr('disabled', true)
@scroll_to_top()
else if response.error
@render_error(response.error)
......@@ -479,10 +480,11 @@ 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
@submit_button.attr('disabled', true)
@scroll_to_top()
else if response.error
@render_error(response.error)
......@@ -558,6 +560,7 @@ class @PeerGradingProblem
@action_button.show()
show_submit_button: () =>
@submit_button.attr('disabled', false)
@submit_button.show()
setup_score_selection: (max_score) =>
......
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