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
7aea582a
Commit
7aea582a
authored
Feb 14, 2015
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6973 from edx/pmitros/add-video-events
Adds events to video player for CC menu
parents
eb22e1ba
dc227cb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
common/lib/xmodule/xmodule/js/src/video/09_video_caption.js
+5
-4
No files found.
common/lib/xmodule/xmodule/js/src/video/09_video_caption.js
View file @
7aea582a
...
...
@@ -107,8 +107,8 @@ function (Sjson, AsyncProcess) {
if
(
this
.
showLanguageMenu
)
{
this
.
container
.
on
({
mouseenter
:
this
.
onContainerMouseEnter
,
mouseleave
:
this
.
onContainerMouseLeave
mouseenter
:
this
.
onContainerMouseEnter
.
bind
(
this
)
,
mouseleave
:
this
.
onContainerMouseLeave
.
bind
(
this
)
});
}
...
...
@@ -130,6 +130,7 @@ function (Sjson, AsyncProcess) {
}
},
/**
* @desc Opens language menu.
*
...
...
@@ -137,7 +138,7 @@ function (Sjson, AsyncProcess) {
*/
onContainerMouseEnter
:
function
(
event
)
{
event
.
preventDefault
();
this
.
state
.
videoPlayer
.
log
(
'video_show_cc_menu'
,
{});
$
(
event
.
currentTarget
).
addClass
(
'is-opened'
);
},
...
...
@@ -148,7 +149,7 @@ function (Sjson, AsyncProcess) {
*/
onContainerMouseLeave
:
function
(
event
)
{
event
.
preventDefault
();
this
.
state
.
videoPlayer
.
log
(
'video_hide_cc_menu'
,
{});
$
(
event
.
currentTarget
).
removeClass
(
'is-opened'
);
},
...
...
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