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
38007354
Commit
38007354
authored
Aug 21, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #478 from MITx/kimth/fix-sequence-modx
Sequential modx/goto_position hits correct multicourse URL
parents
bfeadfd6
990857ca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
common/lib/xmodule/xmodule/js/src/sequence/display.coffee
+4
-2
lms/templates/seq_module.html
+2
-2
No files found.
common/lib/xmodule/xmodule/js/src/sequence/display.coffee
View file @
38007354
...
...
@@ -3,6 +3,7 @@ class @Sequence
@
el
=
$
(
element
).
find
(
'.sequence'
)
@
contents
=
@
$
(
'.seq_contents'
)
@
id
=
@
el
.
data
(
'id'
)
@
modx_url
=
@
el
.
data
(
'course_modx_root'
)
@
initProgress
()
@
bind
()
@
render
parseInt
(
@
el
.
data
(
'position'
))
...
...
@@ -76,13 +77,14 @@ class @Sequence
if
@
position
!=
new_position
if
@
position
!=
undefined
@
mark_visited
@
position
$
.
postWithPrefix
"/modx/
#{
@
id
}
/goto_position"
,
position
:
new_position
modx_full_url
=
@
modx_url
+
'/'
+
@
id
+
'/goto_position'
$
.
postWithPrefix
modx_full_url
,
position
:
new_position
@
mark_active
new_position
@
$
(
'#seq_content'
).
html
@
contents
.
eq
(
new_position
-
1
).
text
()
XModule
.
loadModules
(
'display'
,
@
$
(
'#seq_content'
))
MathJax
.
Hub
.
Queue
([
"Typeset"
,
MathJax
.
Hub
])
MathJax
.
Hub
.
Queue
([
"Typeset"
,
MathJax
.
Hub
,
"seq_content"
])
# NOTE: Actually redundant. Some other MathJax call also being performed
@
position
=
new_position
@
toggleArrows
()
@
hookUpProgressEvent
()
...
...
lms/templates/seq_module.html
View file @
38007354
<div
id=
"sequence_${element_id}"
class=
"sequence"
data-id=
"${item_id}"
data-position=
"${position}"
>
<div
id=
"sequence_${element_id}"
class=
"sequence"
data-id=
"${item_id}"
data-position=
"${position}"
data-course_modx_root=
"/course/modx"
>
<nav
aria-label=
"Section Navigation"
class=
"sequence-nav"
>
<ol
id=
"sequence-list"
>
% for idx, item in enumerate(items):
...
...
@@ -21,7 +21,7 @@
</nav>
% for item in items:
<div
class=
"seq_contents"
>
${item['content'] | h}
</div>
<div
class=
"seq_contents
tex2jax_ignore
"
>
${item['content'] | h}
</div>
% endfor
<div
id=
"seq_content"
></div>
...
...
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