diff --git a/docs/_includes/js/modal.html b/docs/_includes/js/modal.html index 0e2de1d61b..2e32331431 100644 --- a/docs/_includes/js/modal.html +++ b/docs/_includes/js/modal.html @@ -394,9 +394,6 @@ $('#exampleModal').on('show.bs.modal', function (event) { }) {% endhighlight %} -
If the height of a modal changes while it is open, you should call $('#myModal').data('bs.modal').handleUpdate()
to readjust the modal's position in case a scrollbar appears.
The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds .modal-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.
Manually hides a modal. Returns to the caller before the modal has actually been hidden (i.e. before the hidden.bs.modal
event occurs).
Readjusts the modal's positioning to counter a scrollbar in case one should appear, which would make the modal jump to the left.
+Only needed when the height of the modal changes while it is open.
+ {% highlight js %}$('#myModal').modal('handleUpdate'){% endhighlight %} +Bootstrap's modal class exposes a few events for hooking into modal functionality.
All modal events are fired at the modal itself (i.e. at the <div class="modal">
).