aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-06-20 16:01:59 -0700
committerMark Otto <[email protected]>2013-06-20 16:02:05 -0700
commit2aec6dae597b69502d09aec983598e5f955ca558 (patch)
tree3e03a009dbc144fd669fc4553d4a60d43493a0ee /js
parent2fccf927c5320a4dfe3ad58b0a2752ed8f15354e (diff)
downloadbootstrap-2aec6dae597b69502d09aec983598e5f955ca558.tar.xz
bootstrap-2aec6dae597b69502d09aec983598e5f955ca558.zip
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
Diffstat (limited to 'js')
-rw-r--r--js/popover.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/popover.js b/js/popover.js
index 33edadf7f..e58e24908 100644
--- a/js/popover.js
+++ b/js/popover.js
@@ -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 () {