Bug javascript popup

This commit is contained in:
nyanloutre 2017-07-19 13:46:56 +02:00
parent 0291167d2e
commit 8e0200037d
Signed by: nyanloutre
GPG key ID: F85D93686A3A9063

View file

@ -219,8 +219,8 @@
var youtube_id = button.data('youtubeid'); var youtube_id = button.data('youtubeid');
var modal = $(this); var modal = $(this);
modal.find('.modal-body iframe')[0].src = 'https://www.youtube.com/embed/' + youtube_id + "?modestbranding=1&rel=0&controls=0&showinfo=0&html5=1&autoplay=1"; modal.find('.modal-body iframe')[0].src = 'https://www.youtube.com/embed/' + youtube_id + "?modestbranding=1&rel=0&controls=0&showinfo=0&html5=1&autoplay=1";
$(this + ' button.close').click(function () { $('#youtubeModal' + ' button.close').click(function () {
$(this + ' iframe').attr('src', ""); $('#youtubeModal' + ' iframe').attr('src', "");
}); });
}) })
</script> </script>