added profile link and chat button fn to both user dropdowns

This commit is contained in:
psychobunny
2013-08-28 04:09:53 +08:00
parent b681f01be9
commit 4307229ae0
3 changed files with 17 additions and 6 deletions

View File

@@ -280,14 +280,14 @@
}
});
$('.post-container').delegate('.chat', 'click', function(e) {
$('.topic-buttons').delegate('.chat', 'click', function(e) {
var username = $(this).parents('li').attr('data-username');
var touid = $(this).parents('li').attr('data-uid');
if(username === app.username || !app.username)
return;
require(['chat'], function(chat) {
var chatModal = chat.createModalIfDoesntExist(username, touid);
chatModal.show();