v1.18.x
Barış Soner Uşaklı 9 years ago
parent 26be7c25e4
commit 71b3a42bed

@ -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) {

Loading…
Cancel
Save