aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-07-01 16:59:52 -0700
committerChris Rebert <[email protected]>2015-07-01 16:59:52 -0700
commit17566fa697e176da0655d251374bc478edf1e1c4 (patch)
treef6d62162eabc102610e9dc6241eac89ce3f84e7b
parent92276315fb1846ad3361a6e1e3b7a278d54fba4e (diff)
parentef02c559455549ee6699e3cc19fec64bff953477 (diff)
downloadbootstrap-17566fa697e176da0655d251374bc478edf1e1c4.tar.xz
bootstrap-17566fa697e176da0655d251374bc478edf1e1c4.zip
Merge pull request #16747 from twbs/doc-collapse-async-16746
Document that Collapse & Tab methods are async
-rw-r--r--docs/_includes/js/collapse.html6
-rw-r--r--docs/_includes/js/tabs.html2
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/_includes/js/collapse.html b/docs/_includes/js/collapse.html
index 084bb4bad..6d856862a 100644
--- a/docs/_includes/js/collapse.html
+++ b/docs/_includes/js/collapse.html
@@ -229,13 +229,13 @@ $('#myCollapsible').collapse({
{% endhighlight %}
<h4><code>.collapse('toggle')</code></h4>
- <p>Toggles a collapsible element to shown or hidden.</p>
+ <p>Toggles a collapsible element to shown or hidden. <strong>Returns to the caller before the collapsible element has actually been shown or hidden</strong> (i.e. before the <code>shown.bs.collapse</code> or <code>hidden.bs.collapse</code> event occurs).</p>
<h4><code>.collapse('show')</code></h4>
- <p>Shows a collapsible element.</p>
+ <p>Shows a collapsible element. <strong>Returns to the caller before the collapsible element has actually been shown</strong> (i.e. before the <code>shown.bs.collapse</code> event occurs).</p>
<h4><code>.collapse('hide')</code></h4>
- <p>Hides a collapsible element.</p>
+ <p>Hides a collapsible element. <strong>Returns to the caller before the collapsible element has actually been hidden</strong> (i.e. before the <code>hidden.bs.collapse</code> event occurs).</p>
<h3 id="collapse-events">Events</h3>
<p>Bootstrap's collapse class exposes a few events for hooking into collapse functionality.</p>
diff --git a/docs/_includes/js/tabs.html b/docs/_includes/js/tabs.html
index 5ce8a766e..033b42430 100644
--- a/docs/_includes/js/tabs.html
+++ b/docs/_includes/js/tabs.html
@@ -98,7 +98,7 @@ $('#myTabs li:eq(2) a').tab('show') // Select third tab (0-indexed)
</p>
<h4><code>.tab('show')</code></h4>
- <p>Selects the given tab and shows its associated content. Any other tab that was previously selected becomes unselected and its associated content is hidden.</p>
+ <p>Selects the given tab and shows its associated content. Any other tab that was previously selected becomes unselected and its associated content is hidden. <strong>Returns to the caller before the tab pane has actually been shown</strong> (i.e. before the <code>shown.bs.tab</code> event occurs).</p>
{% highlight js %}$('#someTab').tab('show'){% endhighlight %}
<h3 id="tabs-events">Events</h3>