From: Alexander Ebert Date: Sat, 25 May 2013 18:03:18 +0000 (+0200) Subject: Fixed notification items X-Git-Tag: 2.0.0_Beta_1~53^2~1^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=541f30ea21ce05d65374f1b7c004b9b88e19fa08;p=GitHub%2FWoltLab%2FWCF.git Fixed notification items --- diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index 8c9c047fb3..be58d1a6d0 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -1274,7 +1274,7 @@ WCF.Notification.UserPanel = WCF.UserPanel.extend({ * @see WCF.UserPanel._after() */ _after: function(dropdownMenu) { - this._container.find('li.jsNotificationItem').click($.proxy(this._markAsConfirmed, this)); + WCF.Dropdown.getDropdownMenu(this._container.wcfIdentify()).children('li.jsNotificationItem').click($.proxy(this._markAsConfirmed, this)); }, /** @@ -1328,7 +1328,7 @@ WCF.Notification.UserPanel = WCF.UserPanel.extend({ break; case 'markAsConfirmed': - this._container.find('li.jsNotificationItem').each(function(index, item) { + WCF.Dropdown.getDropdownMenu(this._container.wcfIdentify()).children('li.jsNotificationItem').each(function(index, item) { var $item = $(item); if (data.returnValues.notificationID == $item.data('notificationID')) { window.location = $item.data('link');