From 75b89dff2555670ae2f30b9cad2ad13a1a4e47fe Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 14 Dec 2014 14:56:38 +0100 Subject: [PATCH] Work-around for legacy notification messages w/o a link --- wcfsetup/install/files/js/WCF.User.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index f598944bcd..9767fb9d6e 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -1724,6 +1724,13 @@ WCF.Notification.List = Class.extend({ var $markAsConfirmed = $('').appendTo($item); $markAsConfirmed.click($.proxy(this._markAsConfirmed, this)); } + + // work-around for legacy notifications + if (!$item.find('a').length) { + $item.find('.details > p:eq(0)').html(function(index, oldHTML) { + return '' + oldHTML + ''; + }); + } }).bind(this)); WCF.DOMNodeInsertedHandler.execute(); -- 2.20.1