Log showing and hiding of questions.

This commit is contained in:
Diana Huang
2013-02-13 16:47:52 -05:00
parent 943a565717
commit 93f2bf194c
2 changed files with 4 additions and 0 deletions

View File

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

View File

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