mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 19:41:16 +01:00
closes #4698
This commit is contained in:
@@ -59,6 +59,8 @@ define('forum/category', [
|
||||
});
|
||||
|
||||
handleIgnoreWatch(cid);
|
||||
|
||||
$(window).trigger('action:topics.loaded', {topics: ajaxify.data.topics});
|
||||
};
|
||||
|
||||
function handleIgnoreWatch(cid) {
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
define('forum/recent', ['forum/infinitescroll', 'components'], function(infinitescroll, components) {
|
||||
var Recent = {};
|
||||
|
||||
var newTopicCount = 0,
|
||||
newPostCount = 0;
|
||||
var newTopicCount = 0;
|
||||
var newPostCount = 0;
|
||||
|
||||
$(window).on('action:ajaxify.start', function(ev, data) {
|
||||
if (ajaxify.currentPage !== data.url) {
|
||||
@@ -26,6 +26,8 @@ define('forum/recent', ['forum/infinitescroll', 'components'], function(infinite
|
||||
if (!config.usePagination) {
|
||||
infinitescroll.init(Recent.loadMoreTopics);
|
||||
}
|
||||
|
||||
$(window).trigger('action:topics.loaded', {topics: ajaxify.data.topics});
|
||||
};
|
||||
|
||||
Recent.watchForNewPosts = function () {
|
||||
|
||||
@@ -20,6 +20,8 @@ define('forum/unread', ['forum/recent', 'topicSelect', 'forum/infinitescroll', '
|
||||
|
||||
recent.watchForNewPosts();
|
||||
|
||||
$(window).trigger('action:topics.loaded', {topics: ajaxify.data.topics});
|
||||
|
||||
$('#markSelectedRead').on('click', function() {
|
||||
var tids = topicSelect.getSelectedTids();
|
||||
if(!tids.length) {
|
||||
|
||||
Reference in New Issue
Block a user