mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-15 10:05:40 +02:00
add build script for minified files and allow elements to be returned to getContent and title in popovers
This commit is contained in:
8
js/bootstrap-popover.js
vendored
8
js/bootstrap-popover.js
vendored
@@ -36,8 +36,12 @@
|
||||
|
||||
setContent: function () {
|
||||
var $tip = this.tip()
|
||||
$tip.find('.title')['html'](this.getTitle())
|
||||
$tip.find('.content > *')['html'](this.getContent())
|
||||
, title = this.getTitle()
|
||||
, content = this.getContent()
|
||||
|
||||
$tip.find('.title')[ $.type(title) == 'object' ? 'append' : 'html' ](title)
|
||||
$tip.find('.content > *')[ $.type(content) == 'object' ? 'append' : 'html' ](content)
|
||||
|
||||
$tip[0].className = 'popover'
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user