Fix peer and staff grading interfaces

This commit is contained in:
Vik Paruchuri
2013-02-07 12:54:36 -05:00
parent ade44c330d
commit 5ef4af5afd
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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.")