aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/popover.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/popover.js b/js/popover.js
index feee3308d..4d4979247 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 () {