From 0bc2edd191ba38946b79bd92a96d3adcd11d26c8 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 26 Jun 2014 11:41:40 -0700 Subject: [PATCH] add docs JS to activate popover demos; fixes #13937 --- docs/assets/js/_src/application.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/assets/js/_src/application.js b/docs/assets/js/_src/application.js index 319fcd86c4..cf530d9400 100644 --- a/docs/assets/js/_src/application.js +++ b/docs/assets/js/_src/application.js @@ -80,13 +80,18 @@ selector: '[data-toggle="tooltip"]', container: 'body' }) + $('.popover-demo').popover({ + selector: '[data-toggle="popover"]', + container: 'body' + }) // Demos within modals $('.tooltip-test').tooltip() $('.popover-test').popover() - // Default popover demo + // Default & dismissible popover demos $('.bs-docs-popover').popover() + $('.bs-docs-popover-dismiss').popover({trigger: 'focus'}) // Button state demo $('#loading-example-btn').click(function () {