mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Make twipsy respect custom classes when using a custom template
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.
This commit is contained in:
parent
20add59de3
commit
f07bcafd39
2
js/bootstrap-twipsy.js
vendored
2
js/bootstrap-twipsy.js
vendored
@ -155,7 +155,7 @@
|
||||
, 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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user