projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cd1964
)
Added missing update of notification counter data attribute
author
Marcel Werk
<burntime@woltlab.com>
Mon, 26 Sep 2016 14:44:34 +0000
(16:44 +0200)
committer
Marcel Werk
<burntime@woltlab.com>
Mon, 26 Sep 2016 14:44:34 +0000
(16:44 +0200)
wcfsetup/install/files/js/WCF.User.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.User.js
b/wcfsetup/install/files/js/WCF.User.js
index d0c348328e6d0501e8ecca3b030a6596874ff94e..262adb9b00015a334822a5ef992815f367766876 100644
(file)
--- 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);
}