* @see WCF.UserPanel._after()
*/
_after: function(dropdownMenu) {
- WCF.Dropdown.getDropdownMenu(this._container.wcfIdentify()).children('li.jsNotificationItem').click(function(event) {
- if (event.target.tagName !== 'A') {
- var $item = $(this);
- if ($item.data('link')) {
+ var $items = WCF.Dropdown.getDropdownMenu(this._container.wcfIdentify()).children('li.jsNotificationItem');
+
+ $items.each(function(index, item) {
+ var $item = $(item);
+
+ $('<a href="' + $item.data('link') + '" class="notificationItemLink" />').appendTo($item);
+
+ $item.click(function(event) {
+ if (event.target.tagName !== 'A') {
window.location = $item.data('link');
-
- return false;
}
-
- event.stopPropagation();
- return false;
- }
+ });
});
},