From 63f31364508c1f18922867d5d66c4b84cdfb4db3 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 15 Jan 2015 17:15:41 -0800 Subject: [PATCH] Document that tooltip+popover show+hide methods are async; fixes #15500 [skip sauce] --- docs/_includes/js/popovers.html | 7 ++++--- docs/_includes/js/tooltips.html | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/_includes/js/popovers.html b/docs/_includes/js/popovers.html index d72c78da8b..56d8ce8b1e 100644 --- a/docs/_includes/js/popovers.html +++ b/docs/_includes/js/popovers.html @@ -252,20 +252,21 @@ sagittis lacus vel augue laoreet rutrum faucibus.">

Initializes popovers for an element collection.

.popover('show')

-

Reveals an element's popover. This is considered a "manual" triggering of the popover. Popovers whose both title and content are zero-length are never displayed.

+

Reveals an element's popover. Returns to the caller before the popover has actually been shown (i.e. before the shown.bs.popover event occurs). This is considered a "manual" triggering of the popover. Popovers whose both title and content are zero-length are never displayed.

{% highlight js %}$('#element').popover('show'){% endhighlight %}

.popover('hide')

-

Hides an element's popover. This is considered a "manual" triggering of the popover.

+

Hides an element's popover. Returns to the caller before the popover has actually been hidden (i.e. before the hidden.bs.popover event occurs). This is considered a "manual" triggering of the popover.

{% highlight js %}$('#element').popover('hide'){% endhighlight %}

.popover('toggle')

-

Toggles an element's popover. This is considered a "manual" triggering of the popover.

+

Toggles an element's popover. Returns to the caller before the popover has actually been shown or hidden (i.e. before the shown.bs.popover or hidden.bs.popover event occurs). This is considered a "manual" triggering of the popover.

{% highlight js %}$('#element').popover('toggle'){% endhighlight %}

.popover('destroy')

Hides and destroys an element's popover.

{% highlight js %}$('#element').popover('destroy'){% endhighlight %} +

Events

diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 0cf91bfb54..90fa37208e 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -213,15 +213,15 @@ $('#example').tooltip(options)

Attaches a tooltip handler to an element collection.

.tooltip('show')

-

Reveals an element's tooltip. This is considered a "manual" triggering of the tooltip. Tooltips with zero-length titles are never displayed.

+

Reveals an element's tooltip. Returns to the caller before the tooltip has actually been shown (i.e. before the shown.bs.tooltip event occurs). This is considered a "manual" triggering of the tooltip. Tooltips with zero-length titles are never displayed.

{% highlight js %}$('#element').tooltip('show'){% endhighlight %}

.tooltip('hide')

-

Hides an element's tooltip. This is considered a "manual" triggering of the tooltip.

+

Hides an element's tooltip. Returns to the caller before the tooltip has actually been hidden (i.e. before the hidden.bs.tooltip event occurs). This is considered a "manual" triggering of the tooltip.

{% highlight js %}$('#element').tooltip('hide'){% endhighlight %}

.tooltip('toggle')

-

Toggles an element's tooltip. This is considered a "manual" triggering of the tooltip.

+

Toggles an element's tooltip. Returns to the caller before the tooltip has actually been shown or hidden (i.e. before the shown.bs.tooltip or hidden.bs.tooltip event occurs). This is considered a "manual" triggering of the tooltip.

{% highlight js %}$('#element').tooltip('toggle'){% endhighlight %}

.tooltip('destroy')