diff --git a/javascript.html b/javascript.html index 908cd472..94764df5 100644 --- a/javascript.html +++ b/javascript.html @@ -103,7 +103,7 @@ backdrop boolean, string false - Includes a modal-backdrop element. Set backdrop to "static" if you do not want the modal closed when the backdrop is clicked + Includes a modal-backdrop element. Set backdrop to "static" if you do not want the modal closed when the backdrop is clicked. keyboard @@ -130,7 +130,7 @@

Activates your content as a modal. Accepts an optional options object.

 $('#my-modal').modal({
-  closeOnEscape: true
+  keyboard: true
 })

.modal('toggle')

Manually toggles a modal.

@@ -349,7 +349,7 @@ $('#my-modal').bind('hidden', function () { <div id="profile">...</div> <div id="messages">...</div> <div id="settings">...</div> -</ul> +</div> <script> $(function () { @@ -357,6 +357,26 @@ $('#my-modal').bind('hidden', function () { }) </script>

+

Events

+ + + + + + + + + + + + + +
EventDescription
changeThis event fires on tab change. Use event.target and event.relatedTarget to target the active tab and the previous active tab respectively.
+
+$('#.tabs').bind('change', function (e) {
+  e.target // activated tab
+  e.relatedTarget // previous tab
+})

Demo