1
0
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:
Jacob Thornton
2011-11-20 21:36:26 -08:00
parent 47c7f655ac
commit 36a7eb3851
3 changed files with 27 additions and 3 deletions

View File

@@ -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'
}