aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js/bootstrap.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 /docs/assets/js/bootstrap.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 'docs/assets/js/bootstrap.js')
-rw-r--r--docs/assets/js/bootstrap.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js
index 744b27676..2cbf1957c 100644
--- a/docs/assets/js/bootstrap.js
+++ b/docs/assets/js/bootstrap.js
@@ -1420,6 +1420,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 () {