From cfd66e5dd4951f61be7a25b92d584a8124f44b45 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 26 Feb 2015 12:29:46 -0500 Subject: [PATCH] fixes #2795 --- public/src/client/footer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }