Log showing and hiding of questions.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user