Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
26cb1c5a
Commit
26cb1c5a
authored
Jan 29, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for
https://edx.lighthouseapp.com/projects/102637/tickets/144
(progress tab not updating).
parent
a98c924d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
common/lib/xmodule/xmodule/capa_module.py
+1
-0
lms/djangoapps/courseware/views.py
+5
-2
lms/templates/problem_ajax.html
+1
-1
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
26cb1c5a
...
@@ -229,6 +229,7 @@ class CapaModule(XModule):
...
@@ -229,6 +229,7 @@ class CapaModule(XModule):
'element_id'
:
self
.
location
.
html_id
(),
'element_id'
:
self
.
location
.
html_id
(),
'id'
:
self
.
id
,
'id'
:
self
.
id
,
'ajax_url'
:
self
.
system
.
ajax_url
,
'ajax_url'
:
self
.
system
.
ajax_url
,
'progress'
:
Progress
.
to_js_status_str
(
self
.
get_progress
())
})
})
def
get_problem_html
(
self
,
encapsulate
=
True
):
def
get_problem_html
(
self
,
encapsulate
=
True
):
...
...
lms/djangoapps/courseware/views.py
View file @
26cb1c5a
...
@@ -233,10 +233,13 @@ def index(request, course_id, chapter=None, section=None,
...
@@ -233,10 +233,13 @@ def index(request, course_id, chapter=None, section=None,
# Specifically asked-for section doesn't exist
# Specifically asked-for section doesn't exist
raise
Http404
raise
Http404
# Load all descend
e
nts of the section, because we're going to display it's
# Load all descend
a
nts of the section, because we're going to display it's
# html, which in general will need all of its children
# 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
,
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
:
if
section_module
is
None
:
# User may be trying to be clever and access something
# User may be trying to be clever and access something
# they don't have access to.
# they don't have access to.
...
...
lms/templates/problem_ajax.html
View file @
26cb1c5a
<section
id=
"problem_${element_id}"
class=
"problems-wrapper"
data-problem-id=
"${id}"
data-url=
"${ajax_url}"
></section>
<section
id=
"problem_${element_id}"
class=
"problems-wrapper"
data-problem-id=
"${id}"
data-url=
"${ajax_url}"
progress=
"${progress}"
></section>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment