From 11db482371ed8195093139ddb4eb31177ada0607 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 15 Jul 2014 16:57:25 -0700 Subject: [PATCH] popover dismiss-on-next-click example: instead of + Dismissible popover {% highlight html %} - +Dismissible popover {% endhighlight %} -{% highlight js %} -$('.popover-dismiss').popover({ - trigger: 'focus' -}) -{% endhighlight %} - -
-

Multiple-line links

-

Sometimes you want to add a popover to a hyperlink that wraps multiple lines. The default behavior of the popover plugin is to center it horizontally and vertically. Add white-space: nowrap; to your anchors to avoid this.

-

Usage

diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 792fc97790..cfcfa2b503 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -97,9 +97,8 @@ $('.tooltip-test').tooltip() $('.popover-test').popover() - // Default & dismissible popover demos + // Popover demos $('.bs-docs-popover').popover() - $('.bs-docs-popover-dismiss').popover({ trigger: 'focus' }) // Button state demo $('#loading-example-btn').click(function () {