From: Marcel Werk Date: Mon, 26 Sep 2016 14:44:34 +0000 (+0200) Subject: Added missing update of notification counter data attribute X-Git-Tag: 3.0.0_Beta_2~119 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=555094499683440e421502b2cb310c77c8f407fa;p=GitHub%2FWoltLab%2FWCF.git Added missing update of notification counter data attribute --- diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index d0c348328e..262adb9b00 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -530,6 +530,9 @@ WCF.User.Panel.Notification = WCF.User.Panel.Abstract.extend({ updateBadge: function(count) { count = parseInt(count) || 0; + // update data attribute + $('#userNotifications').attr('data-count', count); + if (this._favico !== null) { this._favico.badge(count); }