Commit 2648a19c by Vik Paruchuri

Fix check for use for single location

parent e0d1eca6
...@@ -9,7 +9,7 @@ class @PeerGrading ...@@ -9,7 +9,7 @@ class @PeerGrading
@peer_grading_outer_container = $('.peer-grading-container') @peer_grading_outer_container = $('.peer-grading-container')
@ajax_url = @peer_grading_container.data('ajax-url') @ajax_url = @peer_grading_container.data('ajax-url')
if @use_single_location if @use_single_location.toLowerCase() == "true"
#If the peer grading element is linked to a single location, then activate the backend for that location #If the peer grading element is linked to a single location, then activate the backend for that location
@activate_problem() @activate_problem()
else else
......
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