1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-07-30 18:30:30 +02:00

Add tooltip self-reference to address #12320

primarily adds a data- attribute to the tooltip (and thus, the popover)
to create a self-reference.
This commit is contained in:
j.corns
2014-05-14 10:36:32 -07:00
parent 5c11632baf
commit 122c05dbd8
3 changed files with 22 additions and 0 deletions

View File

@@ -166,6 +166,7 @@
.detach()
.css({ top: 0, left: 0, display: 'block' })
.addClass(placement)
.data('bs.' + this.type, this)
this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)