From 8e0200037dd87fe1bd98382e63f4552b134b4049 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Wed, 19 Jul 2017 13:46:56 +0200 Subject: [PATCH] Bug javascript popup --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', ""); }); })