Skip to content
Snippets Groups Projects
Commit 2bb24170 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

fix video control hover in learning object show

parent 88030ee2
No related branches found
No related tags found
No related merge requests found
......@@ -265,11 +265,12 @@
<!-- /container -->
<script type="text/javascript">
$('.view video').hover(function() {
if (this.hasAttribute("controls")) {
this.removeAttribute("controls")
} else {
$(".view video").hover(function(event) {
if (event.type === "mouseenter") {
this.setAttribute("controls","controls")
}
else if(event.type === "mouseleave") {
this.removeAttribute("controls")
}
});
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment