aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/popover.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/popover.js b/js/popover.js
index feee3308d..24b85715f 100644
--- a/js/popover.js
+++ b/js/popover.js
@@ -58,7 +58,13 @@
$tip.removeClass('fade top bottom left right in')
- $tip.find('.popover-title:empty').hide()
+ // Hide empty titles
+ //
+ // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
+ // this manually by checking the contents.
+ if ($tip.find('.popover-title').html() === '') {
+ $tip.find('.popover-title').hide();
+ }
}
Popover.prototype.hasContent = function () {
@@ -75,7 +81,7 @@
o.content)
}
- Popover.prototype.arrow =function () {
+ Popover.prototype.arrow = function () {
return this.$arrow = this.$arrow || this.tip().find('.arrow')
}