small fixes

v1.18.x
barisusakli 9 years ago
parent 50c740ae09
commit fcf411a72b

@ -139,6 +139,7 @@ define('forum/topic/posts', [
data.slug = ajaxify.data.slug;
data.tags = ajaxify.data.tags;
data.viewcount = ajaxify.data.viewcount;
data.isFollowing = ajaxify.data.isFollowing;
$(window).trigger('action:posts.loading', {posts: data.posts, after: after, before: before});

@ -10,7 +10,7 @@ define('sort', ['components'], function(components) {
var currentSetting = threadSort.find('a[data-sort="' + config[field] + '"]');
currentSetting.find('i').addClass('fa-check');
threadSort.on('click', 'a', function() {
components.get('topic').on('click', '[component="thread/sort"] a', function() {
var newSetting = $(this).attr('data-sort');
socket.emit(method, newSetting, function(err) {
if (err) {

Loading…
Cancel
Save