Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
1810022d
Commit
1810022d
authored
11 years ago
by
jmclaus
Browse files
Options
Downloads
Patches
Plain Diff
Caption functionality announced when tabbing to list
parent
afa2a681
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/lib/xmodule/xmodule/js/src/video/09_video_caption.js
+4
-0
4 additions, 0 deletions
common/lib/xmodule/xmodule/js/src/video/09_video_caption.js
lms/templates/video.html
+1
-1
1 addition, 1 deletion
lms/templates/video.html
with
5 additions
and
1 deletion
common/lib/xmodule/xmodule/js/src/video/09_video_caption.js
+
4
−
0
View file @
1810022d
...
...
@@ -432,14 +432,18 @@ function () {
// outline has to be drawn (tabbing) or not (mouse click).
this
.
videoCaption
.
isMouseFocus
=
false
;
// Set top and bottom spacing heigh and make sure they are taken out of
// the tabbing order.
this
.
videoCaption
.
subtitlesEl
.
prepend
(
$
(
'
<li class="spacing">
'
)
.
height
(
this
.
videoCaption
.
topSpacingHeight
())
.
attr
(
'
tabindex
'
,
-
1
)
)
.
append
(
$
(
'
<li class="spacing">
'
)
.
height
(
this
.
videoCaption
.
bottomSpacingHeight
())
.
attr
(
'
tabindex
'
,
-
1
)
);
this
.
videoCaption
.
rendered
=
true
;
...
...
This diff is collapsed.
Click to expand it.
lms/templates/video.html
+
1
−
1
View file @
1810022d
...
...
@@ -85,7 +85,7 @@
</section>
</article>
<ol
class=
"subtitles"
tabindex=
"0"
title=
"Captions"
><li></li></ol>
<ol
class=
"subtitles"
tabindex=
"0"
title=
"
${_('
Captions
')}"
role=
"group"
aria-label=
"${_('Activating an item in this group will spool the video to the corresponding time point')}
"
><li></li></ol>
</div>
<div
class=
"focus_grabber last"
></div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment