mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
added profile link and chat button fn to both user dropdowns
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user