diff --git a/docs/_includes/js/popovers.html b/docs/_includes/js/popovers.html index 7739c685e01eb07861c0e67bd92d5ad20ba5c772..1c9a1177709b0adf16ba28f70a6f4b9cb801c252 100644 --- a/docs/_includes/js/popovers.html +++ b/docs/_includes/js/popovers.html @@ -11,7 +11,13 @@ </div> <div class="bs-callout bs-callout-danger"> <h4>Opt-in functionality</h4> - <p>For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning <strong>you must initialize them yourself</strong>.</p> + <p>For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning <strong>you must initialize them yourself</strong>. + One way to initialize all popovers would be to set <code>rel=popover</code> on popover elements, and activate them through a selector:</p> +{% highlight js %} +$(function() { + $("[rel='popover']").popover(); +}); +{% endhighlight %} </div> <div class="bs-callout bs-callout-warning"> <h4>Popovers in button groups and input groups require special setting</h4> diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html index 3ec076b70bfcd29630b237bb6d68911d728f098a..4fc73e7e92f0563819b1ae0f67c9fe7666d6d759 100644 --- a/docs/_includes/js/tooltips.html +++ b/docs/_includes/js/tooltips.html @@ -60,7 +60,14 @@ <div class="bs-callout bs-callout-danger"> <h4>Opt-in functionality</h4> - <p>For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning <strong>you must initialize them yourself</strong>.</p> + <p>For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning <strong>you must initialize them yourself</strong>. + One way to initialize all tooltips would be to set <code>rel=tooltip</code> on tooltip elements, and activate them through a selector:</p> +{% highlight js %} +$(function() { + $("[rel='tooltip']").tooltip(); +}); +{% endhighlight %} + </div> <div class="bs-callout bs-callout-warning"> <h4>Tooltips in button groups and input groups require special setting</h4>