remotes/origin/hotfix/LIL-661
gzbender 8 years ago
parent 8afed017df
commit 1cc670ba6e
  1. 8
      web/src/js/modules/popup.js

@ -4,7 +4,10 @@ var selectedWeekdays = {};
$(document).ready(function () { $(document).ready(function () {
$(".js-video-modal").each(function(){ $(".js-video-modal").each(function(){
const $this = $(this); const $this = $(this);
const url = $this.data('video-url'); const url = $this.data('videoUrl');
if(! url){
return;
}
let data; let data;
let videoId; let videoId;
let channel; let channel;
@ -22,7 +25,8 @@ $(document).ready(function () {
channel = 'vimeo'; channel = 'vimeo';
videoId = split[split.length - 1]; videoId = split[split.length - 1];
} }
$this.data('videoId', videoId); $this.attr('data-video-id', videoId);
$this.attr('data-video-url', '');
$this.modalVideo({ channel }); $this.modalVideo({ channel });
}); });

Loading…
Cancel
Save