]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Make twipsy respect custom classes when using a custom template 906/head
authorNicklas Ansman Giertz <nicklas@ansman.se>
Fri, 6 Jan 2012 10:16:29 +0000 (11:16 +0100)
committerNicklas Ansman Giertz <nicklas@ansman.se>
Fri, 6 Jan 2012 10:16:29 +0000 (11:16 +0100)
If you had a custom class to the root object twipsy would overwrite
that class ($tip[0].className = 'twipsy'), now this has been changed
so it removes only classes that twipsy adds.

js/bootstrap-twipsy.js

index a176f09088e248ccbde8bb827d2bcfc154379c6a..1ce4ad85b6910d596aff8c1d14792554e7c9de5c 100644 (file)
   , setContent: function () {
       var $tip = this.tip()
       $tip.find('.twipsy-inner').html(this.getTitle())
-      $tip[0].className = 'twipsy'
+      $tip.removeClass('fade in top bottom left right')
     }
 
   , hide: function () {