From fcf411a72b25c6e8575e90b71d3686b7c15ba0cf Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 5 Oct 2015 22:24:36 -0400 Subject: [PATCH] small fixes --- public/src/client/topic/posts.js | 1 + public/src/modules/sort.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js index 802dd31048..fd5f310b59 100644 --- a/public/src/client/topic/posts.js +++ b/public/src/client/topic/posts.js @@ -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}); diff --git a/public/src/modules/sort.js b/public/src/modules/sort.js index 6033b9680a..a6fe38f90b 100644 --- a/public/src/modules/sort.js +++ b/public/src/modules/sort.js @@ -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) {