]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix popover when using append.
authorStefan Neculai <stefan.neculai@gmail.com>
Mon, 24 Mar 2014 16:49:03 +0000 (18:49 +0200)
committerStefan Neculai <stefan.neculai@gmail.com>
Mon, 24 Mar 2014 16:49:03 +0000 (18:49 +0200)
js/popover.js

index 23aa829879fdfcc10444c1c979c9090e4932e84e..9cf9f71136e460724e8ffb0f983dff9734478ddb 100644 (file)
@@ -44,7 +44,7 @@
     var content = this.getContent()
 
     $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
-    $tip.find('.popover-content')[ // we use append for html objects to maintain js events
+    $tip.find('.popover-content').empty()[ // we use append for html objects to maintain js events
       this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
     ](content)