From a98a0aa828878c242ea6e50e153f83642cace2ea Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 6 Dec 2020 20:35:08 +0100 Subject: [PATCH] Unified behavior of the notification list and the corresponding menu drop-down --- wcfsetup/install/files/js/WCF.User.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index 45c5964787..c11f772699 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -1795,11 +1795,11 @@ if (COMPILER_TARGET_DEFAULT) { } // work-around for legacy notifications - if (!$item.find('a:not(.notificationItemMarkAsConfirmed)').length) { - $item.find('.details > p:eq(0)').html(function (index, oldHTML) { - return '' + oldHTML + ''; - }); - } + var details = item.querySelector('.details > p:first-child'); + details.classList.add("pointer"); + details.addEventListener('click', function(event) { + window.location.href = $item.data('link'); + }); }).bind(this)); WCF.DOMNodeInsertedHandler.execute(); -- 2.20.1