mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
small fixes
This commit is contained in:
@@ -139,6 +139,7 @@ define('forum/topic/posts', [
|
|||||||
data.slug = ajaxify.data.slug;
|
data.slug = ajaxify.data.slug;
|
||||||
data.tags = ajaxify.data.tags;
|
data.tags = ajaxify.data.tags;
|
||||||
data.viewcount = ajaxify.data.viewcount;
|
data.viewcount = ajaxify.data.viewcount;
|
||||||
|
data.isFollowing = ajaxify.data.isFollowing;
|
||||||
|
|
||||||
$(window).trigger('action:posts.loading', {posts: data.posts, after: after, before: before});
|
$(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] + '"]');
|
var currentSetting = threadSort.find('a[data-sort="' + config[field] + '"]');
|
||||||
currentSetting.find('i').addClass('fa-check');
|
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');
|
var newSetting = $(this).attr('data-sort');
|
||||||
socket.emit(method, newSetting, function(err) {
|
socket.emit(method, newSetting, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user