unread fix

v1.18.x
Baris Soner Usakli 11 years ago
parent 5aa80619c8
commit 15479a31c2

@ -4,6 +4,7 @@
<li class="active">[[unread:title]]</li> <li class="active">[[unread:title]]</li>
</ol> </ol>
<div class="alert alert-warning {no_topics_message}" id="category-no-topics"> <div class="alert alert-warning {no_topics_message}" id="category-no-topics">
<strong>[[unread:no_unread_topics]]</strong> <strong>[[unread:no_unread_topics]]</strong>
</div> </div>

@ -598,7 +598,7 @@ var async = require('async'),
}; };
function noUnreadTopics() { function noUnreadTopics() {
unreadTopics.no_topics_message = 'show'; unreadTopics.no_topics_message = '';
unreadTopics.show_markallread_button = 'hidden'; unreadTopics.show_markallread_button = 'hidden';
callback(null, unreadTopics); callback(null, unreadTopics);
} }
@ -619,7 +619,7 @@ var async = require('async'),
unreadTopics.nextStart = parseInt(rank, 10) + 1; unreadTopics.nextStart = parseInt(rank, 10) + 1;
if (!topicData || topicData.length === 0) { if (!topicData || topicData.length === 0) {
unreadTopics.no_topics_message = 'show'; unreadTopics.no_topics_message = '';
} }
if (uid === 0 || topicData.length === 0) { if (uid === 0 || topicData.length === 0) {
unreadTopics.show_markallread_button = 'hidden'; unreadTopics.show_markallread_button = 'hidden';

Loading…
Cancel
Save