From 7b614cfa01eccfef02d85f2f82e0b13023ce7baa Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 17 Sep 2011 14:20:51 -0700 Subject: allow backdrop option to accept "static" option --- docs/javascript.html | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index e0d85f25a..ca4f941a1 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -101,15 +101,9 @@ backdrop - boolean + boolean, string false - Includes a modal-backdrop element - - - backdropClickHides - boolean - true - A click on the modal-backdrop element hides the modal + Includes a modal-backdrop element. Set backdrop to "static" if you do not want the modal closed when the backdrop is clicked. keyboard @@ -128,7 +122,7 @@

Markup

You can activate modals on your page easily without having to write a single line of javascript. Just give an element a data-controls-modal attribute which corresponds to a modal element id, and when clicked, it will launch your modal. To add modal options, just include them as data attributes as well.

-<a class="btn" data-controls-modal="my-modal" data-backdrop="true" >Launch Modal</a>
+<a class="btn" data-controls-modal="my-modal" data-backdrop="static" >Launch Modal</a>
 

Notice If you want your modal to animate in and out, just add a .fade class to your .modal element (refer to the demo to see this in action).

Methods

@@ -464,7 +458,7 @@ $('#my-modal').bind('hidden', function () { title - string | function + string, function 'title' attribute or method for retrieving title text @@ -581,13 +575,13 @@ $('#my-modal').bind('hidden', function () { title - string | function + string, function 'title' attribute or method for retrieving title text content - string | function + string, function 'data-content' attribute or method for retrieving content text -- cgit v1.2.3