Notification items can now be clicked directly
authorAlexander Ebert <ebert@woltlab.com>
Mon, 24 Nov 2014 16:08:11 +0000 (17:08 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 24 Nov 2014 16:08:11 +0000 (17:08 +0100)
wcfsetup/install/files/js/WCF.User.js
wcfsetup/install/files/style/dropdown.less

index e2eb894ad326c2c93bc50d1fee6786d9461dff15..b02e8a5aa47a8094507d399e7eef3fc93c245041 100644 (file)
@@ -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;
                        }
index 295b60e581aa8ad7475f5603b8ae05c2513387a8..ea2e9dacaa2753590d2941fa6248c51a037c22b2 100644 (file)
                        }
                        
                        > span {
-                               cursor: auto;
+                               cursor: pointer;
                                white-space: normal;
                        }
                }