From d3c53609cb43580ba0d1fa1b12cf8ae02b14496a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 28 Nov 2014 13:20:49 +0100 Subject: [PATCH] Fixed notification dropdown behavior --- wcfsetup/install/files/js/WCF.User.js | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index aa03774b83..cd473f9ef7 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -1476,6 +1476,11 @@ WCF.Notification.UserPanel = WCF.UserPanel.extend({ $('
  • ' + WCF.Language.get('wcf.global.loading') + '
  • ').prependTo($dropdownMenu); + // remove double separators + $dropdownMenu.children('.dropdownDivider + .dropdownDivider').remove(); + this._didLoad = false; }, + _removeMarkAllAsConfirmed: function() { + $('#userNotificationsMarkAllAsConfirmed').prev('.dropdownDivider').remove(); + $('#userNotificationsMarkAllAsConfirmed').remove(); + }, + /** * Updates user notification count. * -- 2.20.1