Skip to content

Commit 40a761d

Browse files
committed
Stop the video when the modal is closed
1 parent 61ddc90 commit 40a761d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/resources.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,4 +524,8 @@ $.when(
524524
var day = days[j];
525525
}
526526
}
527+
}).then(function () {
528+
$(".modal").on('hidden.bs.modal', function (e) {
529+
$(this).find(".youtube-modal-embed").attr("src", $(this).find(".youtube-modal-embed").attr("src"));
530+
});
527531
});

0 commit comments

Comments
 (0)