diff options
| author | Mark Otto <[email protected]> | 2013-08-06 11:18:12 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-06 11:18:12 -0700 |
| commit | f266595092cd43aead1f6617933554110aeb46ac (patch) | |
| tree | 923c0993ed35ccdf8c041818c0a75f07b02ac413 /js | |
| parent | 440d8f5318c3cf15ec8845fe635c6e01caf27b2b (diff) | |
| download | bootstrap-f266595092cd43aead1f6617933554110aeb46ac.tar.xz bootstrap-f266595092cd43aead1f6617933554110aeb46ac.zip | |
Fixes #9150: Hide popover titles in IE8
Properly hides popover titles in IE8 because apparently it doesn't
accept the `:empty` selector. /cc @fat @cvrebert
Diffstat (limited to 'js')
| -rw-r--r-- | js/popover.js | 8 |
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 () { |
