From: Alexander Ebert Date: Mon, 24 Nov 2014 16:08:11 +0000 (+0100) Subject: Notification items can now be clicked directly X-Git-Tag: 2.1.0_Beta_1~173 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2faa8e81a84e58b59cf3ada8c74edc706d31f80e;p=GitHub%2FWoltLab%2FWCF.git Notification items can now be clicked directly --- diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index e2eb894ad3..b02e8a5aa4 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -1354,6 +1354,13 @@ WCF.Notification.UserPanel = WCF.UserPanel.extend({ _after: function(dropdownMenu) { WCF.Dropdown.getDropdownMenu(this._container.wcfIdentify()).children('li.jsNotificationItem').click(function(event) { if (event.target.tagName !== 'A') { + var $item = $(this); + if ($item.data('link')) { + window.location = $item.data('link'); + + return false; + } + event.stopPropagation(); return false; } diff --git a/wcfsetup/install/files/style/dropdown.less b/wcfsetup/install/files/style/dropdown.less index 295b60e581..ea2e9dacaa 100644 --- a/wcfsetup/install/files/style/dropdown.less +++ b/wcfsetup/install/files/style/dropdown.less @@ -258,7 +258,7 @@ } > span { - cursor: auto; + cursor: pointer; white-space: normal; } }