From d0b141cb3e7013951c8c23493eb433f1a4d84055 Mon Sep 17 00:00:00 2001 From: pebeah Date: Wed, 29 May 2013 00:17:45 +0200 Subject: [PATCH] Notification optimization see http://beta.woltlab.com/index.php/Thread/1277-Link-entfernen-bei-Benachr ichtigungen/ --- wcfsetup/install/files/js/WCF.User.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index 7d0bcc8dcd..0d25bff8f4 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -1255,8 +1255,10 @@ WCF.Notification.UserPanel = WCF.UserPanel.extend({ */ _addDefaultItems: function(dropdownMenu) { this._addDivider(dropdownMenu); - $('
  • ' + WCF.Language.get('wcf.user.notification.showAll') + '
  • ').appendTo(dropdownMenu); - this._addDivider(dropdownMenu); + if (this._container.data('count')) { + $('
  • ' + WCF.Language.get('wcf.user.notification.showAll') + '
  • ').appendTo(dropdownMenu); + this._addDivider(dropdownMenu); + } $('
  • ' + WCF.Language.get('wcf.user.notification.markAllAsConfirmed') + '
  • ').click($.proxy(this._markAllAsConfirmed, this)).appendTo(dropdownMenu); }, -- 2.20.1