Comment touched modules
This commit is contained in:
@@ -10,8 +10,10 @@ class @PeerGrading
|
||||
@ajax_url = @peer_grading_container.data('ajax-url')
|
||||
|
||||
if @use_single_location
|
||||
#If the peer grading element is linked to a single location, then activate the backend for that location
|
||||
@activate_problem()
|
||||
else
|
||||
#Otherwise, activate the panel view.
|
||||
@error_container = $('.error-container')
|
||||
@error_container.toggle(not @error_container.is(':empty'))
|
||||
|
||||
|
||||
@@ -93,8 +93,8 @@ class PeerGradingModule(PeerGradingFields, XModule):
|
||||
if not self.ajax_url.endswith("/"):
|
||||
self.ajax_url = self.ajax_url + "/"
|
||||
|
||||
#This could result in an exception, but not wrapping in a try catch block so it moves up the stack
|
||||
if not isinstance(self.max_grade, int):
|
||||
#This could result in an exception, but not wrapping in a try catch block so it moves up the stack
|
||||
raise TypeError("max_grade needs to be an integer.")
|
||||
|
||||
def closed(self):
|
||||
|
||||
Reference in New Issue
Block a user