Fixed notification items
authorAlexander Ebert <ebert@woltlab.com>
Sat, 25 May 2013 18:03:18 +0000 (20:03 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 25 May 2013 18:03:18 +0000 (20:03 +0200)
wcfsetup/install/files/js/WCF.User.js

index 8c9c047fb33b78327f1cac7cd9f1ead5f78cb96d..be58d1a6d051126437c982efa24fc7f2859982d9 100644 (file)
@@ -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');