|
|
@ -14,7 +14,7 @@ define('forum/category', [
|
|
|
|
|
|
|
|
|
|
|
|
$(window).on('action:ajaxify.start', function(ev, data) {
|
|
|
|
$(window).on('action:ajaxify.start', function(ev, data) {
|
|
|
|
if (ajaxify.currentPage !== data.url) {
|
|
|
|
if (ajaxify.currentPage !== data.url) {
|
|
|
|
navigator.hide();
|
|
|
|
navigator.disable();
|
|
|
|
|
|
|
|
|
|
|
|
removeListeners();
|
|
|
|
removeListeners();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -39,12 +39,12 @@ define('forum/category', [
|
|
|
|
|
|
|
|
|
|
|
|
sort.handleSort('categoryTopicSort', 'user.setCategorySort', 'category/' + ajaxify.data.slug);
|
|
|
|
sort.handleSort('categoryTopicSort', 'user.setCategorySort', 'category/' + ajaxify.data.slug);
|
|
|
|
|
|
|
|
|
|
|
|
enableInfiniteLoadingOrPagination();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!config.usePagination) {
|
|
|
|
if (!config.usePagination) {
|
|
|
|
navigator.init('[component="category/topic"]', ajaxify.data.topic_count, Category.toTop, Category.toBottom, Category.navigatorCallback);
|
|
|
|
navigator.init('[component="category/topic"]', ajaxify.data.topic_count, Category.toTop, Category.toBottom, Category.navigatorCallback);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enableInfiniteLoadingOrPagination();
|
|
|
|
|
|
|
|
|
|
|
|
$('[component="category"]').on('click', '[component="topic/header"]', function() {
|
|
|
|
$('[component="category"]').on('click', '[component="topic/header"]', function() {
|
|
|
|
var clickedIndex = $(this).parents('[data-index]').attr('data-index');
|
|
|
|
var clickedIndex = $(this).parents('[data-index]').attr('data-index');
|
|
|
|
$('[component="category/topic"]').each(function(index, el) {
|
|
|
|
$('[component="category/topic"]').each(function(index, el) {
|
|
|
@ -173,7 +173,7 @@ define('forum/category', [
|
|
|
|
if (!config.usePagination) {
|
|
|
|
if (!config.usePagination) {
|
|
|
|
infinitescroll.init($('[component="category"]'), Category.loadMoreTopics);
|
|
|
|
infinitescroll.init($('[component="category"]'), Category.loadMoreTopics);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
navigator.hide();
|
|
|
|
navigator.disable();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|