mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-12 16:44:17 +02:00
adding container option to tooltips
This commit is contained in:
4
js/bootstrap-tooltip.js
vendored
4
js/bootstrap-tooltip.js
vendored
@@ -126,7 +126,8 @@
|
|||||||
$tip
|
$tip
|
||||||
.detach()
|
.detach()
|
||||||
.css({ top: 0, left: 0, display: 'block' })
|
.css({ top: 0, left: 0, display: 'block' })
|
||||||
.insertAfter(this.$element)
|
|
||||||
|
this.options.container && $tip.appendTo(this.options.container).length || $tip.insertAfter(this.$element)
|
||||||
|
|
||||||
pos = this.getPosition()
|
pos = this.getPosition()
|
||||||
|
|
||||||
@@ -279,6 +280,7 @@
|
|||||||
, title: ''
|
, title: ''
|
||||||
, delay: 0
|
, delay: 0
|
||||||
, html: false
|
, html: false
|
||||||
|
, container: ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user