Commit 93f2bf19 by Diana Huang

Log showing and hiding of questions.

parent 943a5657
......@@ -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)
......@@ -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)
......
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