Created
December 15, 2012 10:34
-
-
Save magefad/4292589 to your computer and use it in GitHub Desktop.
Bootstrap modal youtube iframe stop when close
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(".modal-backdrop, .youtube .btn").click(function() { | |
var iframe = jQuery(this).parent().parent().find("iframe"); | |
iframe.attr("src", iframe.attr("src")); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment