Commit 5ef4af5a by Vik Paruchuri

Fix peer and staff grading interfaces

parent ade44c33
......@@ -204,6 +204,7 @@ class @PeerGradingProblem
@calibration_feedback_button = $('.calibration-feedback-button')
@interstitial_page_button = $('.interstitial-page-button')
@flag_student_checkbox = $('.flag-checkbox')
@collapse_question()
Collapsible.setCollapsibles(@content_panel)
......@@ -270,7 +271,6 @@ class @PeerGradingProblem
if response.calibrated and (@calibration == null or @calibration == false)
@calibration = false
@fetch_submission_essay()
@collapse_question()
# If we were calibrating before and no longer need to,
# show the interstitial page
else if response.calibrated and @calibration == true
......
......@@ -183,6 +183,7 @@ class @StaffGrading
@question_header = $('.question-header')
@question_header.click @collapse_question
@collapse_question()
# model state
@state = state_no_data
......@@ -292,7 +293,6 @@ class @StaffGrading
@min_for_ml = response.min_for_ml
@num_pending = response.num_pending
@state = state_grading
@collapse_question
if not @max_score?
@error("No max score specified for submission.")
......
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