From: Mark Otto Date: Mon, 14 Oct 2013 01:43:19 +0000 (-0700) Subject: mention .modal-open and .modal-backdrop in docs /cc #10102 X-Git-Tag: v3.0.1~39^2~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edca93b8c71829cbe09055e048a31b54ec19eb5b;p=thirdparty%2Fbootstrap.git mention .modal-open and .modal-backdrop in docs /cc #10102 --- diff --git a/javascript.html b/javascript.html index d7cc4c7a36..e0723989e6 100644 --- a/javascript.html +++ b/javascript.html @@ -232,6 +232,7 @@ $('#myModal').on('show.bs.modal', function (e) {

Usage

+

The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds .model-open to the <body> to override default scrolling behavior and generates a .modal-backdrop to provide a click area for dismissing shown modals when clicking outside the modal.

Via data attributes

Activate a modal without writing JavaScript. Set data-toggle="modal" on a controller element, like a button, along with a data-target="#foo" or href="#foo" to target a specific modal to toggle.