From 214f6af324b695924541d6c44fc397c4a097c2c9 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 2 Aug 2014 19:46:28 -0400 Subject: [PATCH] parseInt --- public/src/forum/topic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 230cc09f50..04c0854c08 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -153,7 +153,7 @@ define('forum/topic', dependencies, function(pagination, infinitescroll, threadT function onNewNotification(data) { var tid = ajaxify.variables.get('topic_id'); - if (data && data.tid && parseInt(data.tid, 10) === tid) { + if (data && data.tid && parseInt(data.tid, 10) === parseInt(tid, 10)) { socket.emit('topics.markTopicNotificationsRead', tid); } }