Comment touched modules

This commit is contained in:
Vik Paruchuri
2013-05-07 15:48:19 -04:00
parent 9e03280f50
commit 1398b55713
3 changed files with 33 additions and 11 deletions

View File

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

View File

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