diff options
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') |
