From 95c796d61e40e7c12aef75ba8dff4bf211ccbb8f Mon Sep 17 00:00:00 2001 From: Julian Thilo Date: Sat, 31 Aug 2013 20:43:57 +0200 Subject: [PATCH 1/2] Fix #10324: Add opt-in note to tooltip docs * Re-added a note (now callout) about need to opt in to tooltip docs * Converted same note in popover section to callout --- javascript.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/javascript.html b/javascript.html index 48aaf2cd9f..e9f14ee86f 100644 --- a/javascript.html +++ b/javascript.html @@ -461,6 +461,8 @@ $('#myModal').on('hidden.bs.modal', function () { Dropdown + + @@ -819,6 +821,10 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { +
+

Opt-in functionality

+

For performance reasons, the Tooltip and Popover data-apis are opt-in. If you would like to use them just specify a selector option.

+

Tooltips in button groups and input groups require special setting

When using tooltips on elements within a .btn-group or an .input-group, you'll have to specify the option container: 'body' (documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip is triggered).

@@ -985,6 +991,10 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {

Plugin dependency

Popovers require the tooltip plugin to be included in your version of Bootstrap.

+
+

Opt-in functionality

+

For performance reasons, the Tooltip and Popover data-apis are opt-in. If you would like to use them just specify a selector option.

+

Popovers in button groups and input groups require special setting

When using popovers on elements within a .btn-group or an .input-group, you'll have to specify the option container: 'body' (documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the popover is triggered).

@@ -1016,6 +1026,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {

Popover bottom

+

Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.

@@ -1141,9 +1152,6 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {

Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.

-

Markup

-

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.

-

Methods

$().popover(options)

Initializes popovers for an element collection.

From 1ebd2826939b263be8ceeb9b3e8339d13547dfa9 Mon Sep 17 00:00:00 2001 From: Julian Thilo Date: Tue, 10 Sep 2013 23:31:57 +0200 Subject: [PATCH 2/2] Rephrase text --- javascript.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript.html b/javascript.html index e9f14ee86f..eaceadab36 100644 --- a/javascript.html +++ b/javascript.html @@ -823,7 +823,7 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {

Opt-in functionality

-

For performance reasons, the Tooltip and Popover data-apis are opt-in. If you would like to use them just specify a selector option.

+

For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning you must initialize them yourself.

Tooltips in button groups and input groups require special setting

@@ -993,7 +993,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {

Opt-in functionality

-

For performance reasons, the Tooltip and Popover data-apis are opt-in. If you would like to use them just specify a selector option.

+

For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning you must initialize them yourself.

Popovers in button groups and input groups require special setting