From 93f2bf194ced04473a506ca66583f06accd13af3 Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Wed, 13 Feb 2013 16:47:52 -0500 Subject: [PATCH] Log showing and hiding of questions. --- .../xmodule/js/src/peergrading/peer_grading_problem.coffee | 2 ++ lms/static/coffee/src/staff_grading/staff_grading.coffee | 2 ++ 2 files changed, 4 insertions(+) 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 0d83c0a6b6..17a84dcf8b 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 @@ -471,7 +471,9 @@ class @PeerGradingProblem @prompt_container.slideToggle() @prompt_container.toggleClass('open') if @question_header.text() == "(Hide)" + Logger.log 'hide_question', {location: @location} new_text = "(Show)" else + Logger.log 'show_question', {location: @location} new_text = "(Hide)" @question_header.text(new_text) diff --git a/lms/static/coffee/src/staff_grading/staff_grading.coffee b/lms/static/coffee/src/staff_grading/staff_grading.coffee index 491f04c9c8..983ec42eb4 100644 --- a/lms/static/coffee/src/staff_grading/staff_grading.coffee +++ b/lms/static/coffee/src/staff_grading/staff_grading.coffee @@ -439,8 +439,10 @@ class @StaffGrading @prompt_container.slideToggle() @prompt_container.toggleClass('open') if @question_header.text() == "(Hide)" + Logger.log 'hide_question', {location: @location} new_text = "(Show)" else + Logger.log 'show_question', {location: @location} new_text = "(Hide)" @question_header.text(new_text)