]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
mention .modal-open and .modal-backdrop in docs /cc #10102
authorMark Otto <otto@github.com>
Mon, 14 Oct 2013 01:43:19 +0000 (18:43 -0700)
committerMark Otto <otto@github.com>
Mon, 14 Oct 2013 01:43:19 +0000 (18:43 -0700)
javascript.html

index d7cc4c7a36e285c6be584c773d9a00e2775e494b..e0723989e6c6a0a065cea221b4f2a189ade3a344 100644 (file)
@@ -232,6 +232,7 @@ $('#myModal').on('show.bs.modal', function (e) {
     </div>
 
     <h2 id="modals-usage">Usage</h2>
+    <p>The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds <code>.model-open</code> to the <code>&lt;body&gt;</code> to override default scrolling behavior and generates a <code>.modal-backdrop</code> to provide a click area for dismissing shown modals when clicking outside the modal.</p>
 
     <h3>Via data attributes</h3>
     <p>Activate a modal without writing JavaScript. Set <code>data-toggle="modal"</code> on a controller element, like a button, along with a <code>data-target="#foo"</code> or <code>href="#foo"</code> to target a specific modal to toggle.</p>