]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes #12892: Link to one of the SO articles on Bootstrap modals and YouTube
authorMark Otto <otto@github.com>
Sun, 9 Mar 2014 23:03:46 +0000 (16:03 -0700)
committerMark Otto <otto@github.com>
Sun, 9 Mar 2014 23:03:46 +0000 (16:03 -0700)
docs/javascript.html

index d3eeeb5c229196e1ea41221bde829621803f4274..798ac1110fd38f1565cc0ddea9cede1b86d66272 100644 (file)
@@ -231,13 +231,17 @@ $('#myModal').on('show.bs.modal', function (e) {
 </div>
 {% endhighlight %}
 
-
   <div class="bs-callout bs-callout-warning">
     <h4>Make modals accessible</h4>
     <p>Be sure to add <code>role="dialog"</code> to <code>.modal</code>, <code>aria-labelledby="myModalLabel"</code> attribute to reference the modal title, and <code>aria-hidden="true"</code> to tell assistive technologies to skip the modal's DOM elements.</p>
     <p>Additionally, you may give a description of your modal dialog with <code>aria-describedby</code> on <code>.modal</code>.</p>
   </div>
 
+  <div class="bs-callout bs-callout-info">
+    <h4>Embedding YouTube videos</h4>
+    <p>Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. <a href="http://stackoverflow.com/questions/18622508/bootstrap-3-and-youtube-in-modal">See this helpful Stack Overflow post</a> for more information.</p>
+  </div>
+
   <h2 id="modals-sizes">Optional sizes</h2>
   <p>Modals have two optional sizes, available via modifier classes to be placed on a <code>.modal-dialog</code>.</p>
   <div class="bs-example">