diff options
| author | fat <[email protected]> | 2013-12-28 20:59:45 -0800 |
|---|---|---|
| committer | fat <[email protected]> | 2013-12-28 20:59:45 -0800 |
| commit | 5bf13914e49942409c0b21aeaf2ed756c41bd498 (patch) | |
| tree | 31544a508612abf475f0d3f061dc3063782e3550 /js | |
| parent | 6405442e66194329cafb3dad9936131fc8fe6677 (diff) | |
| download | bootstrap-5bf13914e49942409c0b21aeaf2ed756c41bd498.tar.xz bootstrap-5bf13914e49942409c0b21aeaf2ed756c41bd498.zip | |
fixes #10658 jQuery Popover content loses bound events on second setContent call.
Diffstat (limited to 'js')
| -rw-r--r-- | js/popover.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/popover.js b/js/popover.js index 1e8104c4f..3fd29802d 100644 --- a/js/popover.js +++ b/js/popover.js @@ -43,7 +43,9 @@ var content = this.getContent() $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title) - $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content) + $tip.find('.popover-content')[ // we use append for html objects to maintain js events + this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text' + ](content) $tip.removeClass('fade top bottom left right in') |
