small fixes

This commit is contained in:
barisusakli
2015-10-05 22:24:36 -04:00
parent 50c740ae09
commit fcf411a72b
2 changed files with 2 additions and 1 deletions

View File

@@ -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});

View File

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