Commit a3b6ef8b by Calen Pennington

Rename variables to make type clearer

parent 4df122a9
......@@ -81,7 +81,7 @@ class TextAnnotationModule(AnnotatableFields, XModule):
def get_html(self):
""" Renders parameters to template. """
context = {
'course_id': self.runtime.course_id,
'course_key': self.runtime.course_id,
'display_name': self.display_name_with_default,
'tag': self.tags,
'source': self.source,
......
......@@ -149,7 +149,7 @@ class VideoAnnotationModule(AnnotatableFields, XModule):
extension = self._get_extension(self.sourceurl)
context = {
'course_id': self.runtime.course_id,
'course_key': self.runtime.course_id,
'display_name': self.display_name_with_default,
'instructions_html': self.instructions,
'sourceUrl': self.sourceurl,
......
......@@ -112,7 +112,7 @@
},
},
auth: {
tokenUrl: location.protocol+'//'+location.host+"/token?course_id=${course_id.to_deprecated_string()}"
tokenUrl: location.protocol+'//'+location.host+"/token?course_id=${course_key.to_deprecated_string()}"
},
store: {
// The endpoint of the store on your server.
......
......@@ -116,7 +116,7 @@
},
},
auth: {
tokenUrl: location.protocol+'//'+location.host+"/token?course_id=${course_id.to_deprecated_string()}"
tokenUrl: location.protocol+'//'+location.host+"/token?course_id=${course_key.to_deprecated_string()}"
},
store: {
// The endpoint of the store on your server.
......
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