mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
action:categories.loading and action.categories.loaded
This commit is contained in:
@@ -122,6 +122,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(window).trigger('action:categories.loading');
|
||||||
loadingMoreTopics = true;
|
loadingMoreTopics = true;
|
||||||
socket.emit('categories.loadMore', {
|
socket.emit('categories.loadMore', {
|
||||||
cid: cid,
|
cid: cid,
|
||||||
@@ -136,6 +137,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
$('#topics-container').attr('data-nextstart', data.nextStart);
|
$('#topics-container').attr('data-nextstart', data.nextStart);
|
||||||
}
|
}
|
||||||
loadingMoreTopics = false;
|
loadingMoreTopics = false;
|
||||||
|
$(window).trigger('action:categories.loaded');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user