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
9a015272
Commit
9a015272
authored
Sep 21, 2015
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9846 from edx/sarina/tooltips
Make LMS courseware tooltips better
parents
58488eaa
94b73dc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
common/lib/xmodule/xmodule/seq_module.py
+11
-8
lms/templates/seq_module.html
+0
-1
No files found.
common/lib/xmodule/xmodule/seq_module.py
View file @
9a015272
...
@@ -179,7 +179,9 @@ class SequenceModule(SequenceFields, ProctoringFields, XModule):
...
@@ -179,7 +179,9 @@ class SequenceModule(SequenceFields, ProctoringFields, XModule):
rendered_child
=
child
.
render
(
STUDENT_VIEW
,
context
)
rendered_child
=
child
.
render
(
STUDENT_VIEW
,
context
)
fragment
.
add_frag_resources
(
rendered_child
)
fragment
.
add_frag_resources
(
rendered_child
)
titles
=
child
.
get_content_titles
()
# `titles` is a list of titles to inject into the sequential tooltip display.
# We omit any blank titles to avoid blank lines in the tooltip display.
titles
=
[
title
.
strip
()
for
title
in
child
.
get_content_titles
()
if
title
.
strip
()]
childinfo
=
{
childinfo
=
{
'content'
:
rendered_child
.
content
,
'content'
:
rendered_child
.
content
,
'title'
:
"
\n
"
.
join
(
titles
),
'title'
:
"
\n
"
.
join
(
titles
),
...
@@ -193,13 +195,14 @@ class SequenceModule(SequenceFields, ProctoringFields, XModule):
...
@@ -193,13 +195,14 @@ class SequenceModule(SequenceFields, ProctoringFields, XModule):
childinfo
[
'title'
]
=
child
.
display_name_with_default
childinfo
[
'title'
]
=
child
.
display_name_with_default
contents
.
append
(
childinfo
)
contents
.
append
(
childinfo
)
params
=
{
'items'
:
contents
,
params
=
{
'element_id'
:
self
.
location
.
html_id
(),
'items'
:
contents
,
'item_id'
:
self
.
location
.
to_deprecated_string
(),
'element_id'
:
self
.
location
.
html_id
(),
'position'
:
self
.
position
,
'item_id'
:
self
.
location
.
to_deprecated_string
(),
'tag'
:
self
.
location
.
category
,
'position'
:
self
.
position
,
'ajax_url'
:
self
.
system
.
ajax_url
,
'tag'
:
self
.
location
.
category
,
}
'ajax_url'
:
self
.
system
.
ajax_url
,
}
fragment
.
add_content
(
self
.
system
.
render_template
(
"seq_module.html"
,
params
))
fragment
.
add_content
(
self
.
system
.
render_template
(
"seq_module.html"
,
params
))
...
...
lms/templates/seq_module.html
View file @
9a015272
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
data-id=
"${item['id']}"
data-id=
"${item['id']}"
data-element=
"${idx+1}"
data-element=
"${idx+1}"
href=
"javascript:void(0);"
href=
"javascript:void(0);"
title=
"${item['title']|h}"
data-page-title=
"${item['page_title']|h}"
data-page-title=
"${item['page_title']|h}"
aria-controls=
"seq_contents_${idx}"
aria-controls=
"seq_contents_${idx}"
id=
"tab_${idx}"
id=
"tab_${idx}"
...
...
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