1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-12 08:34:08 +02:00

Fixes #7730: Better hiding of empty titles in popovers

If the popover's title contains no text, hide it via JS. Previously was
done via CSS's `:empty` property, but that doesn't work in IE8, so JS
it is.

/cc @fat becaue I probably did this wrong <3
This commit is contained in:
Mark Otto
2013-06-20 16:01:59 -07:00
parent 2fccf927c5
commit 2aec6dae59
5 changed files with 5 additions and 9 deletions

View File

@@ -55,6 +55,8 @@
$tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content)
$tip.removeClass('fade top bottom left right in')
$tip.find('.popover-title:empty').hide()
}
Popover.prototype.hasContent = function () {