Commit da75d0d3 authored by Mark Otto's avatar Mark Otto
Browse files

Merge branch '3.0.0-wip' of github.com:twbs/bootstrap into 3.0.0-wip

parents 65c0f847 5c6b9959
Showing with 33 additions and 37 deletions
+33 -37
<div class="navbar navbar-inverse navbar-fixed-top bs-docs-nav"> <header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav role="banner"">
<div class="container"> <div class="container">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse"> <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">Toggle navigation</span>
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
</ul> </ul>
</nav> </nav>
</div> </div>
</div> </header>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
{% include nav-main.html %} {% include nav-main.html %}
<!-- Docs page layout --> <!-- Docs page layout -->
<div class="bs-header" id="content" role="banner"> <div class="bs-header" id="content">
<div class="container"> <div class="container">
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
<p>{{ page.lead }}</p> <p>{{ page.lead }}</p>
......
...@@ -1059,11 +1059,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") } ...@@ -1059,11 +1059,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
}) })
}) })
$(function () { $(document)
var $body = $(document.body) .on('shown.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') })
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') }) .on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') })
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
})
}(window.jQuery); }(window.jQuery);
......
This diff is collapsed.
...@@ -316,19 +316,19 @@ $('#myModal').modal({ ...@@ -316,19 +316,19 @@ $('#myModal').modal({
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>show</td> <td>show.bs.modal</td>
<td>This event fires immediately when the <code>show</code> instance method is called.</td> <td>This event fires immediately when the <code>show</code> instance method is called.</td>
</tr> </tr>
<tr> <tr>
<td>shown</td> <td>shown.bs.modal</td>
<td>This event is fired when the modal has been made visible to the user (will wait for CSS transitions to complete).</td> <td>This event is fired when the modal has been made visible to the user (will wait for CSS transitions to complete).</td>
</tr> </tr>
<tr> <tr>
<td>hide</td> <td>hide.bs.modal</td>
<td>This event is fired immediately when the <code>hide</code> instance method has been called.</td> <td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
</tr> </tr>
<tr> <tr>
<td>hidden</td> <td>hidden.bs.modal</td>
<td>This event is fired when the modal has finished being hidden from the user (will wait for CSS transitions to complete).</td> <td>This event is fired when the modal has finished being hidden from the user (will wait for CSS transitions to complete).</td>
</tr> </tr>
</tbody> </tbody>
...@@ -593,7 +593,7 @@ $('[data-spy="scroll"]').each(function () { ...@@ -593,7 +593,7 @@ $('[data-spy="scroll"]').each(function () {
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>activate</td> <td>activate.bs.scrollspy</td>
<td>This event fires whenever a new item becomes activated by the scrollspy.</td> <td>This event fires whenever a new item becomes activated by the scrollspy.</td>
</tr> </tr>
</tbody> </tbody>
...@@ -714,11 +714,11 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed) ...@@ -714,11 +714,11 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>show</td> <td>show.bs.tab</td>
<td>This event fires on tab show, but before the new tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td> <td>This event fires on tab show, but before the new tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td>
</tr> </tr>
<tr> <tr>
<td>shown</td> <td>shown.bs.tab</td>
<td>This event fires on tab show after a tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td> <td>This event fires on tab show after a tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td>
</tr> </tr>
</tbody> </tbody>
...@@ -883,19 +883,19 @@ $('#example').tooltip(options) ...@@ -883,19 +883,19 @@ $('#example').tooltip(options)
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>show</td> <td>show.bs.tooltip</td>
<td>This event fires immediately when the <code>show</code> instance method is called.</td> <td>This event fires immediately when the <code>show</code> instance method is called.</td>
</tr> </tr>
<tr> <tr>
<td>shown</td> <td>shown.bs.tooltip</td>
<td>This event is fired when the tooltip has been made visible to the user (will wait for CSS transitions to complete).</td> <td>This event is fired when the tooltip has been made visible to the user (will wait for CSS transitions to complete).</td>
</tr> </tr>
<tr> <tr>
<td>hide</td> <td>hide.bs.tooltip</td>
<td>This event is fired immediately when the <code>hide</code> instance method has been called.</td> <td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
</tr> </tr>
<tr> <tr>
<td>hidden</td> <td>hidden.bs.tooltip</td>
<td>This event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete).</td> <td>This event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete).</td>
</tr> </tr>
</tbody> </tbody>
...@@ -1107,19 +1107,19 @@ $('#myTooltip').on('hidden.bs.tooltip', function () { ...@@ -1107,19 +1107,19 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>show</td> <td>show.bs.popover</td>
<td>This event fires immediately when the <code>show</code> instance method is called.</td> <td>This event fires immediately when the <code>show</code> instance method is called.</td>
</tr> </tr>
<tr> <tr>
<td>shown</td> <td>shown.bs.popover</td>
<td>This event is fired when the popover has been made visible to the user (will wait for CSS transitions to complete).</td> <td>This event is fired when the popover has been made visible to the user (will wait for CSS transitions to complete).</td>
</tr> </tr>
<tr> <tr>
<td>hide</td> <td>hide.bs.popover</td>
<td>This event is fired immediately when the <code>hide</code> instance method has been called.</td> <td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
</tr> </tr>
<tr> <tr>
<td>hidden</td> <td>hidden.bs.popover</td>
<td>This event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).</td> <td>This event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).</td>
</tr> </tr>
</tbody> </tbody>
...@@ -1191,11 +1191,11 @@ $('#myPopover').on('hidden.bs.popover', function () { ...@@ -1191,11 +1191,11 @@ $('#myPopover').on('hidden.bs.popover', function () {
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>close</td> <td>close.bs.alert</td>
<td>This event fires immediately when the <code>close</code> instance method is called.</td> <td>This event fires immediately when the <code>close</code> instance method is called.</td>
</tr> </tr>
<tr> <tr>
<td>closed</td> <td>closed.bs.alert</td>
<td>This event is fired when the alert has been closed (will wait for CSS transitions to complete).</td> <td>This event is fired when the alert has been closed (will wait for CSS transitions to complete).</td>
</tr> </tr>
</tbody> </tbody>
...@@ -1533,21 +1533,21 @@ $('#myCollapsible').collapse({ ...@@ -1533,21 +1533,21 @@ $('#myCollapsible').collapse({
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>show</td> <td>show.bs.collapse</td>
<td>This event fires immediately when the <code>show</code> instance method is called.</td> <td>This event fires immediately when the <code>show</code> instance method is called.</td>
</tr> </tr>
<tr> <tr>
<td>shown</td> <td>shown.bs.collapse</td>
<td>This event is fired when a collapse element has been made visible to the user (will wait for CSS transitions to complete).</td> <td>This event is fired when a collapse element has been made visible to the user (will wait for CSS transitions to complete).</td>
</tr> </tr>
<tr> <tr>
<td>hide</td> <td>hide.bs.collapse</td>
<td> <td>
This event is fired immediately when the <code>hide</code> method has been called. This event is fired immediately when the <code>hide</code> method has been called.
</td> </td>
</tr> </tr>
<tr> <tr>
<td>hidden</td> <td>hidden.bs.collapse</td>
<td>This event is fired when a collapse element has been hidden from the user (will wait for CSS transitions to complete).</td> <td>This event is fired when a collapse element has been hidden from the user (will wait for CSS transitions to complete).</td>
</tr> </tr>
</tbody> </tbody>
...@@ -1764,11 +1764,11 @@ $('.carousel').carousel({ ...@@ -1764,11 +1764,11 @@ $('.carousel').carousel({
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>slide</td> <td>slide.bs.carousel</td>
<td>This event fires immediately when the <code>slide</code> instance method is invoked.</td> <td>This event fires immediately when the <code>slide</code> instance method is invoked.</td>
</tr> </tr>
<tr> <tr>
<td>slid</td> <td>slid.bs.carousel</td>
<td>This event is fired when the carousel has completed its slide transition.</td> <td>This event is fired when the carousel has completed its slide transition.</td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -237,10 +237,8 @@ ...@@ -237,10 +237,8 @@
}) })
}) })
$(function () { $(document)
var $body = $(document.body) .on('shown.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') })
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') }) .on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') })
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
})
}(window.jQuery); }(window.jQuery);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment