mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-04-18 12:11:12 +00:00
Add support to register_notify_callbacks for marking notifications as read.
This commit is contained in:
parent
f6c29b0a5d
commit
04f40f974e
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ var registered_functions = [];
|
|||
function fill_notification_badge(data) {
|
||||
var badges = document.getElementsByClassName(notify_badge_class);
|
||||
if (badges) {
|
||||
for (var i = 0; i < badges.length; i++) {
|
||||
for(var i = 0; i < badges.length; i++) {
|
||||
badges[i].innerHTML = data.unread_count;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue