From fbb4998999bec602cbf7ade8c5fa7a41f1628104 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Mon, 30 Dec 2013 16:09:07 -0500 Subject: [PATCH] closes #676 --- public/src/forum/unread.js | 1 + src/topics.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/forum/unread.js b/public/src/forum/unread.js index e0dd1dd7d7..5151eb37cb 100644 --- a/public/src/forum/unread.js +++ b/public/src/forum/unread.js @@ -71,6 +71,7 @@ define(function() { }); function onTopicsLoaded(topics) { + var html = templates.prepare(templates['unread'].blocks['topics']).parse({ topics: topics }); diff --git a/src/topics.js b/src/topics.js index 86916f5ea9..a96effea17 100644 --- a/src/topics.js +++ b/src/topics.js @@ -456,9 +456,10 @@ var async = require('async'), } function sendUnreadTopics(topicIds) { + Topics.getTopicsByTids(topicIds, uid, function(topicData) { unreadTopics.topics = topicData; - unreadTopics.nextStart = start + topicIds.length; + unreadTopics.nextStart = stop + 1; if (!topicData || topicData.length === 0) { unreadTopics.no_topics_message = 'show'; }