]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Make the popove respect custom classes
authorNicklas Ansman Giertz <nicklas@ansman.se>
Sun, 22 Jan 2012 11:06:59 +0000 (12:06 +0100)
committerNicklas Ansman Giertz <nicklas@ansman.se>
Sun, 22 Jan 2012 11:06:59 +0000 (12:06 +0100)
js/bootstrap-popover.js

index e90899895280d01b94e828f26747b698fd1571d0..a0de0f08dcb25ce4dd32aff11b13af1e25ec305e 100644 (file)
@@ -41,7 +41,7 @@
       $tip.find('.title')[ $.type(title) == 'object' ? 'append' : 'html' ](title)
       $tip.find('.content > *')[ $.type(content) == 'object' ? 'append' : 'html' ](content)
 
-      $tip[0].className = 'popover'
+      $tip.removeClass('fade top bottom left right in')
     }
 
   , hasContent: function () {
@@ -92,4 +92,4 @@
   , template: '<div class="popover"><div class="arrow"></div><div class="inner"><h3 class="title"></h3><div class="content"><p></p></div></div></div>'
   })
 
-}( window.jQuery )
\ No newline at end of file
+}( window.jQuery )