fix tooltip titles in seq_module for non-new-xml-format courses

This commit is contained in:
ichuang
2012-09-10 21:33:54 -04:00
parent e62e58dc6e
commit 97a32e64ee

View File

@@ -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(),