From 5bf13914e49942409c0b21aeaf2ed756c41bd498 Mon Sep 17 00:00:00 2001 From: fat Date: Sat, 28 Dec 2013 20:59:45 -0800 Subject: fixes #10658 jQuery Popover content loses bound events on second setContent call. --- js/popover.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'js') 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') -- cgit v1.2.3