From: Alexander Ebert Date: Sun, 6 Dec 2020 19:35:08 +0000 (+0100) Subject: Unified behavior of the notification list and the corresponding menu drop-down X-Git-Tag: 5.3.2~59 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a98a0aa828878c242ea6e50e153f83642cace2ea;p=GitHub%2FWoltLab%2FWCF.git Unified behavior of the notification list and the corresponding menu drop-down --- 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();