diff --git a/common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee b/common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee index ee98905cda..9cd1a1cf1b 100644 --- a/common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee +++ b/common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee @@ -179,6 +179,9 @@ class @PeerGradingProblem @grading_panel = $('.grading-panel') @content_panel = $('.content-panel') @grading_message = $('.grading-message') + @question_header = $('.question-header') + @question_header + @question_header.click @collapse_question @grading_message.hide() @grading_wrapper =$('.grading-wrapper') @@ -280,6 +283,7 @@ 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 @@ -469,6 +473,15 @@ class @PeerGradingProblem $("input[name='score-selection']").change @graded_callback $("input[name='grade-selection']").change @graded_callback + collapse_question: () => + @prompt_container.slideToggle() + @prompt_container.toggleClass('open') + if @question_header.text() == "(Hide)" + new_text = "(Show)" + else + new_text = "(Hide)" + @question_header.text(new_text) + #mock_backend = false #ajax_url = $('.peer-grading').data('ajax_url') #backend = new PeerGradingProblemBackend(ajax_url, mock_backend) diff --git a/lms/static/sass/course/_staff_grading.scss b/lms/static/sass/course/_staff_grading.scss index 0bbde2cdf9..7c8219c7bd 100644 --- a/lms/static/sass/course/_staff_grading.scss +++ b/lms/static/sass/course/_staff_grading.scss @@ -9,6 +9,12 @@ div.peer-grading{ margin : 0 0 0 10px; } + h2{ + a{ + text-size: .5em; + } + } + div { margin: 0px; } diff --git a/lms/templates/peer_grading/peer_grading_problem.html b/lms/templates/peer_grading/peer_grading_problem.html index ecacd59218..e3d713e7e4 100644 --- a/lms/templates/peer_grading/peer_grading_problem.html +++ b/lms/templates/peer_grading/peer_grading_problem.html @@ -13,7 +13,7 @@