Commit 0bc2edd1 authored by Chris Rebert's avatar Chris Rebert
Browse files

add docs JS to activate popover demos; fixes #13937

parent 83d91652
5 merge requests!28721Hot test,!13947Fix popover live demos in docs,!16605Test pull please ignore,!22103test,!25326Adjust examples
Showing with 6 additions and 1 deletion
+6 -1
...@@ -80,13 +80,18 @@ ...@@ -80,13 +80,18 @@
selector: '[data-toggle="tooltip"]', selector: '[data-toggle="tooltip"]',
container: 'body' container: 'body'
}) })
$('.popover-demo').popover({
selector: '[data-toggle="popover"]',
container: 'body'
})
// Demos within modals // Demos within modals
$('.tooltip-test').tooltip() $('.tooltip-test').tooltip()
$('.popover-test').popover() $('.popover-test').popover()
// Default popover demo // Default & dismissible popover demos
$('.bs-docs-popover').popover() $('.bs-docs-popover').popover()
$('.bs-docs-popover-dismiss').popover({trigger: 'focus'})
// Button state demo // Button state demo
$('#loading-example-btn').click(function () { $('#loading-example-btn').click(function () {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment