fix tooltip titles in seq_module for non-new-xml-format courses
This commit is contained in:
@@ -75,7 +75,7 @@ class SequenceModule(XModule):
|
||||
contents = []
|
||||
for child in self.get_display_items():
|
||||
progress = child.get_progress()
|
||||
contents.append({
|
||||
childinfo = {
|
||||
'content': child.get_html(),
|
||||
'title': "\n".join(
|
||||
grand_child.display_name.strip()
|
||||
@@ -85,7 +85,10 @@ class SequenceModule(XModule):
|
||||
'progress_status': Progress.to_js_status_str(progress),
|
||||
'progress_detail': Progress.to_js_detail_str(progress),
|
||||
'type': child.get_icon_class(),
|
||||
})
|
||||
}
|
||||
if childinfo['title']=='':
|
||||
childinfo['title'] = child.metadata['display_name']
|
||||
contents.append(childinfo)
|
||||
|
||||
params = {'items': contents,
|
||||
'element_id': self.location.html_id(),
|
||||
|
||||
Reference in New Issue
Block a user