Bug fermeture popup youtube
This commit is contained in:
parent
0eb1fe6fcc
commit
8069d17e69
@ -218,11 +218,11 @@
|
|||||||
var button = $(event.relatedTarget);
|
var button = $(event.relatedTarget);
|
||||||
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&html5=1&autoplay=1";
|
modal.find('.modal-body iframe')[0].src = 'https://www.youtube.com/embed/' + youtube_id + "?modestbranding=1&rel=0&html5=1";
|
||||||
$('#youtubeModal' + ' button.close').click(function () {
|
});
|
||||||
$('#youtubeModal' + ' iframe').attr('src', "");
|
$('#youtubeModal').on('hidden.bs.modal', function () {
|
||||||
|
$(this).find('.modal-body iframe')[0].src = "";
|
||||||
});
|
});
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user