Bug javascript popup
This commit is contained in:
parent
0291167d2e
commit
8e0200037d
1 changed files with 2 additions and 2 deletions
|
@ -219,8 +219,8 @@
|
|||
var youtube_id = button.data('youtubeid');
|
||||
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";
|
||||
$(this + ' button.close').click(function () {
|
||||
$(this + ' iframe').attr('src', "");
|
||||
$('#youtubeModal' + ' button.close').click(function () {
|
||||
$('#youtubeModal' + ' iframe').attr('src', "");
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue