From 15479a31c27388e5d5afab565d5dd1155d7df747 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sat, 1 Feb 2014 13:41:32 -0500 Subject: [PATCH] unread fix --- public/templates/unread.tpl | 1 + src/topics.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/templates/unread.tpl b/public/templates/unread.tpl index b725361503..c7c85016ce 100644 --- a/public/templates/unread.tpl +++ b/public/templates/unread.tpl @@ -4,6 +4,7 @@
  • [[unread:title]]
  • +
    [[unread:no_unread_topics]]
    diff --git a/src/topics.js b/src/topics.js index ac4927541c..653ffb2fc3 100644 --- a/src/topics.js +++ b/src/topics.js @@ -598,7 +598,7 @@ var async = require('async'), }; function noUnreadTopics() { - unreadTopics.no_topics_message = 'show'; + unreadTopics.no_topics_message = ''; unreadTopics.show_markallread_button = 'hidden'; callback(null, unreadTopics); } @@ -619,7 +619,7 @@ var async = require('async'), unreadTopics.nextStart = parseInt(rank, 10) + 1; if (!topicData || topicData.length === 0) { - unreadTopics.no_topics_message = 'show'; + unreadTopics.no_topics_message = ''; } if (uid === 0 || topicData.length === 0) { unreadTopics.show_markallread_button = 'hidden';