Commit d6530cce by Giulio Gratta

clear flag/unknown with successful submission

parent e51d453e
...@@ -294,6 +294,9 @@ class @PeerGradingProblem ...@@ -294,6 +294,9 @@ class @PeerGradingProblem
# Callbacks for various events # Callbacks for various events
# #
########## ##########
remove_answer_unknown: () =>
@answer_unknown_checkbox.removeAttr("checked")
remove_flag: () => remove_flag: () =>
@flag_student_checkbox.removeAttr("checked") @flag_student_checkbox.removeAttr("checked")
...@@ -442,6 +445,8 @@ class @PeerGradingProblem ...@@ -442,6 +445,8 @@ class @PeerGradingProblem
@flag_student_container.show() @flag_student_container.show()
@answer_unknown_container.show() @answer_unknown_container.show()
@feedback_area.val("") @feedback_area.val("")
@remove_flag
@remove_answer_unknown
@submit_button.unbind('click') @submit_button.unbind('click')
@submit_button.click @submit_grade @submit_button.click @submit_grade
......
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