From: Alexander Ebert Date: Sun, 14 Dec 2014 13:56:38 +0000 (+0100) Subject: Work-around for legacy notification messages w/o a link X-Git-Tag: 2.1.0_Beta_1~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75b89dff2555670ae2f30b9cad2ad13a1a4e47fe;p=GitHub%2FWoltLab%2FWCF.git Work-around for legacy notification messages w/o a link --- 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();