From 344edda4cbbabdc5d962959be9f39801821bb067 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 24 Nov 2014 23:50:20 +0100 Subject: [PATCH] Disabled black magic for Internet Explorer --- wcfsetup/install/files/js/WCF.User.js | 5 ++- wcfsetup/install/files/style/dropdown.less | 37 +++++++++++++--------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index d409f71846..c616fe4683 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -1357,7 +1357,10 @@ WCF.Notification.UserPanel = WCF.UserPanel.extend({ $items.each(function(index, item) { var $item = $(item); - $('').appendTo($item); + if (!$.browser.msie) { + $item.addClass('notificationItemLink'); + $('').appendTo($item); + } $item.click(function(event) { if (event.target.tagName !== 'A') { diff --git a/wcfsetup/install/files/style/dropdown.less b/wcfsetup/install/files/style/dropdown.less index 035237e725..4a6f5e6486 100644 --- a/wcfsetup/install/files/style/dropdown.less +++ b/wcfsetup/install/files/style/dropdown.less @@ -247,8 +247,6 @@ } &.notificationItem { - position: relative; - &.groupedNotificationItem > span { > div:first-child { padding: 4px 2px 2px; @@ -259,24 +257,33 @@ } } - > span { - pointer-events: none; + &.notificationItemLink { position: relative; - white-space: normal; - z-index: 10; - a { - pointer-events: all; + > span { + cursor: default; + pointer-events: none; + position: relative; + z-index: 10; + + a { + pointer-events: all; + } + } + + > a { + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + z-index: 1; } } - > a.notificationItemLink { - bottom: 0; - left: 0; - position: absolute; - right: 0; - top: 0; - z-index: 1; + > span { + cursor: pointer; + white-space: normal; } } } -- 2.20.1