diff --git a/index.html b/index.html index 752c84f..ba00109 100644 --- a/index.html +++ b/index.html @@ -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', ""); }); })