mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
add docs JS to activate popover demos; fixes #13937
This commit is contained in:
parent
83d9165287
commit
0bc2edd191
@ -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 () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user