diff --git a/public/src/forum/account.js b/public/src/forum/account.js index d3c639cf66..e3c3ec7fe5 100644 --- a/public/src/forum/account.js +++ b/public/src/forum/account.js @@ -68,10 +68,6 @@ define(['forum/accountheader'], function(header) { app.openChat(username, theirid); }); - $('.user-recent-posts .topic-row').on('click', function() { - ajaxify.go($(this).attr('topic-url')); - }); - socket.on('user.isOnline', Account.handleUserOnline); socket.emit('user.isOnline', theirid, Account.handleUserOnline); diff --git a/public/src/forum/category.js b/public/src/forum/category.js index e3a8688472..f8c9c5c168 100644 --- a/public/src/forum/category.js +++ b/public/src/forum/category.js @@ -155,8 +155,8 @@ define(['composer'], function(composer) { replies += '
' + posts[i].content + '
' + '' + '' + diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 90e5ea0cb0..1725bc8347 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -522,8 +522,10 @@ define(['composer'], function(composer) { $('#post-container').on('click', '.chat', function(e) { - var username = $(this).parents('li.row').attr('data-username'); - var touid = $(this).parents('li.row').attr('data-uid'); + var post = $(this).parents('li.post-row'), + username = post.attr('data-username'), + touid = post.attr('data-uid'); + app.openChat(username, touid); $(this).parents('.btn-group').find('.dropdown-toggle').click(); return false; diff --git a/public/templates/account.tpl b/public/templates/account.tpl index 9b5eae3519..0539f30742 100644 --- a/public/templates/account.tpl +++ b/public/templates/account.tpl @@ -108,12 +108,28 @@{posts.content}
+ + posted + in + + {posts.categoryName} + + + +{posts.content}
+ + {posts.username} + +{posts.content}
-