fixed unread and recent new post/topic notifications

v1.18.x
Baris Usakli 11 years ago
parent 27f421587e
commit 04ee1d137d

@ -34,7 +34,7 @@ define(function() {
}); });
$('#new-topics-alert').on('click', function() { $('#new-topics-alert').on('click', function() {
$(this).hide(); $(this).addClass('hide');
}); });
socket.on('event:new_topic', function(data) { socket.on('event:new_topic', function(data) {
@ -77,7 +77,7 @@ define(function() {
text += ' Click here to reload.'; text += ' Click here to reload.';
$('#new-topics-alert').html(text).fadeIn('slow'); $('#new-topics-alert').html(text).removeClass('hide').fadeIn('slow');
} }
Recent.onTopicsLoaded = function(topics) { Recent.onTopicsLoaded = function(topics) {

@ -15,7 +15,7 @@ define(function() {
newPostCount = 0; newPostCount = 0;
$('#new-topics-alert').on('click', function() { $('#new-topics-alert').on('click', function() {
$(this).hide(); $(this).addClass('hide');
}); });
socket.on('event:new_topic', function(data) { socket.on('event:new_topic', function(data) {
@ -44,7 +44,7 @@ define(function() {
text += ' Click here to reload.'; text += ' Click here to reload.';
$('#new-topics-alert').html(text).fadeIn('slow'); $('#new-topics-alert').html(text).removeClass('hide').fadeIn('slow');
} }
socket.on('event:new_post', function(data) { socket.on('event:new_post', function(data) {

@ -13,7 +13,7 @@
<br /> <br />
<a href="/recent"> <a href="/recent">
<div class="alert hide" id="new-topics-alert"></div> <div class="alert alert-warning hide" id="new-topics-alert"></div>
</a> </a>
<div class="alert alert-warning hide {no_topics_message}" id="category-no-topics"> <div class="alert alert-warning hide {no_topics_message}" id="category-no-topics">

@ -5,16 +5,16 @@
<div id="category_active_users"></div> <div id="category_active_users"></div>
</ol> </ol>
<a href="/unread">
<div class="alert hide" id="new-topics-alert"></div>
</a>
<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>
<button id="mark-allread-btn" class="btn btn-primary {show_markallread_button}">[[unread:mark_all_read]]</button> <button id="mark-allread-btn" class="btn btn-primary {show_markallread_button}">[[unread:mark_all_read]]</button>
<a href="/unread">
<div class="alert alert-warning hide" id="new-topics-alert"></div>
</a>
<div class="category row"> <div class="category row">
<div class="{topic_row_size}"> <div class="{topic_row_size}">
<ul id="topics-container" data-next-start="{nextStart}"> <ul id="topics-container" data-next-start="{nextStart}">

Loading…
Cancel
Save