Skip to content
This repository was archived by the owner on Nov 7, 2020. It is now read-only.

Commit

Permalink
Hide video div if using iframeEmbedCode
Browse files Browse the repository at this point in the history
  • Loading branch information
yourcelf committed Sep 15, 2016
1 parent 1e8d5f9 commit 9363e2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/js/event-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,7 @@ views.VideoEmbedView = Backbone.Marionette.ItemView.extend({
previousVideoDetailsTemplate: _.template($("#previous-video-details-template").html()),
ui: {
player: ".video-player",
iframePlayer: ".iframe-player",
placeholder: ".video-placeholder",
controls: ".video-controls",
playForAll: ".play-for-all"
Expand Down Expand Up @@ -1863,7 +1864,7 @@ views.VideoEmbedView = Backbone.Marionette.ItemView.extend({
});
},
setPlayerVisibility: function() {
var visible = !!(this.model.get("youtubeEmbed") || this.model.get("iframeEmbedCode"));
var visible = !!this.model.get("youtubeEmbed");
// Display player if it's visible.
this.ui.player.toggle(visible);
// Show a placeholder ("video goes here") if video is not visible and
Expand Down

0 comments on commit 9363e2f

Please sign in to comment.