Added missing update of notification counter data attribute
authorMarcel Werk <burntime@woltlab.com>
Mon, 26 Sep 2016 14:44:34 +0000 (16:44 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 26 Sep 2016 14:44:34 +0000 (16:44 +0200)
wcfsetup/install/files/js/WCF.User.js

index d0c348328e6d0501e8ecca3b030a6596874ff94e..262adb9b00015a334822a5ef992815f367766876 100644 (file)
@@ -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);
                }