From: pebeah Date: Tue, 28 May 2013 22:17:45 +0000 (+0200) Subject: Notification optimization X-Git-Tag: 2.0.0_Beta_1~7^2~1^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d0b141cb3e7013951c8c23493eb433f1a4d84055;p=GitHub%2FWoltLab%2FWCF.git Notification optimization see http://beta.woltlab.com/index.php/Thread/1277-Link-entfernen-bei-Benachr ichtigungen/ --- 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); },