diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py index e4ab804f49..f33da6e3a4 100644 --- a/common/lib/xmodule/xmodule/capa_module.py +++ b/common/lib/xmodule/xmodule/capa_module.py @@ -229,6 +229,7 @@ class CapaModule(XModule): 'element_id': self.location.html_id(), 'id': self.id, 'ajax_url': self.system.ajax_url, + 'progress': Progress.to_js_status_str(self.get_progress()) }) def get_problem_html(self, encapsulate=True): diff --git a/lms/djangoapps/courseware/views.py b/lms/djangoapps/courseware/views.py index 760ccb1d05..5d65d7c632 100644 --- a/lms/djangoapps/courseware/views.py +++ b/lms/djangoapps/courseware/views.py @@ -233,10 +233,13 @@ def index(request, course_id, chapter=None, section=None, # Specifically asked-for section doesn't exist raise Http404 - # Load all descendents of the section, because we're going to display it's + # Load all descendants of the section, because we're going to display its # html, which in general will need all of its children + section_module_cache = StudentModuleCache.cache_for_descriptor_descendents( + course.id, request.user, section_descriptor, depth=None) + section_module = get_module(request.user, request, section_descriptor.location, - student_module_cache, course.id, position=position, depth=None) + section_module_cache, course.id, position=position, depth=None) if section_module is None: # User may be trying to be clever and access something # they don't have access to. diff --git a/lms/templates/problem_ajax.html b/lms/templates/problem_ajax.html index 012e4276c3..42cd18c4e3 100644 --- a/lms/templates/problem_ajax.html +++ b/lms/templates/problem_ajax.html @@ -1 +1 @@ -
+