Skip to content

Commit

Permalink
Stop video after closing modal window
Browse files Browse the repository at this point in the history
  • Loading branch information
ozasadnyy committed Nov 5, 2014
1 parent d24c222 commit ab002f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@
$(this).parent().addClass('hidden-xs');
}
});
$('.modal').on('hidden.bs.modal', function () {
var iframe = $(this).find('iframe');
iframe.attr('src', iframe.attr('src'));
});


if (typeof twitterFeedUrl !== 'undefined') {
Expand Down
Loading

0 comments on commit ab002f8

Please sign in to comment.