Skip to content

Node.js based forum software built for the modern web

fixes #2795

psychobunnycfd66e5dd495
diff --git a/public/src/client/footer.js b/public/src/client/footer.js
index 9d6ff8c4ee..6462e3e39a 100644
--- a/public/src/client/footer.js
+++ b/public/src/client/footer.js
@@ -12,7 +12,7 @@ define('forum/footer', ['notifications', 'chat'], function(Notifications, Chat)
return console.warn('Error updating unread count', err);
}
- $('#unread-count')
+ $('#unread-count i')
.toggleClass('unread-count', count > 0)
.attr('data-content', count > 20 ? '20+' : count);
}
@@ -43,7 +43,7 @@ define('forum/footer', ['notifications', 'chat'], function(Notifications, Chat)
}
function increaseUnreadCount() {
- var count = parseInt($('#unread-count').attr('data-content'), 10) + 1;
+ var count = parseInt($('#unread-count i').attr('data-content'), 10) + 1;
updateUnreadTopicCount(null, count);
}