diff options
| author | j.corns <[email protected]> | 2014-05-14 10:36:32 -0700 |
|---|---|---|
| committer | j.corns <[email protected]> | 2014-05-14 10:36:32 -0700 |
| commit | 122c05dbd87d9708086da4d097f7e715233f3b2c (patch) | |
| tree | e74040ee86e4bfee9007ff4101aa5c49c0c398c4 /js/tooltip.js | |
| parent | 5c11632bafd573462951e91ebda0fd020c63954e (diff) | |
| download | bootstrap-122c05dbd87d9708086da4d097f7e715233f3b2c.tar.xz bootstrap-122c05dbd87d9708086da4d097f7e715233f3b2c.zip | |
Add tooltip self-reference to address #12320
primarily adds a data- attribute to the tooltip (and thus, the popover)
to create a self-reference.
Diffstat (limited to 'js/tooltip.js')
| -rw-r--r-- | js/tooltip.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/tooltip.js b/js/tooltip.js index d985f96e3..076f2fa1c 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -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) |
