mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-06 21:56:42 +02:00
Make the popove respect custom classes
This commit is contained in:
4
js/bootstrap-popover.js
vendored
4
js/bootstrap-popover.js
vendored
@@ -41,7 +41,7 @@
|
|||||||
$tip.find('.title')[ $.type(title) == 'object' ? 'append' : 'html' ](title)
|
$tip.find('.title')[ $.type(title) == 'object' ? 'append' : 'html' ](title)
|
||||||
$tip.find('.content > *')[ $.type(content) == 'object' ? 'append' : 'html' ](content)
|
$tip.find('.content > *')[ $.type(content) == 'object' ? 'append' : 'html' ](content)
|
||||||
|
|
||||||
$tip[0].className = 'popover'
|
$tip.removeClass('fade top bottom left right in')
|
||||||
}
|
}
|
||||||
|
|
||||||
, hasContent: function () {
|
, 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>'
|
, 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 )
|
}( window.jQuery )
|
||||||
|
Reference in New Issue
Block a user