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
1b8cdcd4
Commit
1b8cdcd4
authored
Sep 14, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add unstyled problem progress per-problem.
needs css
parent
111f7533
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+8
-0
lms/templates/problem.html
+3
-0
No files found.
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
1b8cdcd4
...
@@ -24,11 +24,17 @@ class @Problem
...
@@ -24,11 +24,17 @@ class @Problem
@
$
(
'section.action input.save'
).
click
@
save
@
$
(
'section.action input.save'
).
click
@
save
@
$
(
'input.math'
).
keyup
(
@
refreshMath
).
each
(
@
refreshMath
)
@
$
(
'input.math'
).
keyup
(
@
refreshMath
).
each
(
@
refreshMath
)
renderProgressState
:
()
=>
@
$
(
".problem-progress"
).
html
(
@
el
.
data
(
'progress_detail'
))
updateProgress
:
(
response
)
=>
updateProgress
:
(
response
)
=>
if
response
.
progress_changed
if
response
.
progress_changed
@
el
.
data
(
'progress_status'
,
response
.
progress_status
)
@
el
.
data
(
'progress_status'
,
response
.
progress_status
)
@
el
.
data
(
'progress_detail'
,
response
.
progress_detail
)
@
el
.
data
(
'progress_detail'
,
response
.
progress_detail
)
@
el
.
trigger
(
'progressChanged'
)
@
el
.
trigger
(
'progressChanged'
)
@
renderProgressState
()
queueing
:
=>
queueing
:
=>
@
queued_items
=
@
$
(
".xqueue"
)
@
queued_items
=
@
$
(
".xqueue"
)
...
@@ -79,6 +85,8 @@ class @Problem
...
@@ -79,6 +85,8 @@ class @Problem
@
setupInputTypes
()
@
setupInputTypes
()
@
bind
()
@
bind
()
@
queueing
()
@
queueing
()
@
renderProgressState
()
# TODO add hooks for problem types here by inspecting response.html and doing
# TODO add hooks for problem types here by inspecting response.html and doing
# stuff if a div w a class is found
# stuff if a div w a class is found
...
...
lms/templates/problem.html
View file @
1b8cdcd4
...
@@ -6,6 +6,9 @@
...
@@ -6,6 +6,9 @@
% endif
% endif
</h2>
</h2>
<section
class=
"problem-progress"
>
</section>
<section
class=
"problem"
>
<section
class=
"problem"
>
${ problem['html'] }
${ problem['html'] }
...
...
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