diff --git a/src/styles/components/_youtubevideo.scss b/src/styles/components/_youtubevideo.scss index 75645690..bceca951 100644 --- a/src/styles/components/_youtubevideo.scss +++ b/src/styles/components/_youtubevideo.scss @@ -90,7 +90,7 @@ top: 0; } -#youtubecontainer { // scss-lint:disable IdSelector +.youtubecontainer { position: relative; &.fullscreen { @@ -98,7 +98,7 @@ } } -#youtubeplayerinfo { // scss-lint:disable IdSelector +.youtubeplayerinfo { bottom: 10%; left: 0; opacity: 0; diff --git a/static/js/directives/youtubevideo.js b/static/js/directives/youtubevideo.js index 44021e18..9b643f83 100644 --- a/static/js/directives/youtubevideo.js +++ b/static/js/directives/youtubevideo.js @@ -108,7 +108,7 @@ define(['require', 'jquery', 'underscore', 'moment', 'text!partials/youtubevideo var createSandboxApi = function() { if (!sandboxApi) { - var sandboxFrame = $("#youtubeplayer", $element)[0]; + var sandboxFrame = $(".youtubeplayer", $element)[0]; var template = sandboxTemplate; template = template.replace(/__PARENT_ORIGIN__/g, $window.location.protocol + "//" + $window.location.host); @@ -605,7 +605,7 @@ define(['require', 'jquery', 'underscore', 'moment', 'text!partials/youtubevideo var compile = function(tElement, tAttr) { return function(scope, iElement, iAttrs, controller) { - $(iElement).find("#youtubecontainer").on("dblclick", _.debounce(function(event) { + $(iElement).find(".youtubecontainer").on("dblclick", _.debounce(function(event) { scope.toggleFullscreen(event.delegateTarget); }, 100, true)); } diff --git a/static/partials/youtubevideo.html b/static/partials/youtubevideo.html index b7c8350f..0cd01e76 100644 --- a/static/partials/youtubevideo.html +++ b/static/partials/youtubevideo.html @@ -29,11 +29,11 @@