mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
fixed the chat modal
This commit is contained in:
@@ -281,17 +281,16 @@
|
||||
});
|
||||
|
||||
$('.topic-buttons').delegate('.chat', 'click', function(e) {
|
||||
var username = $(this).parents('li').attr('data-username');
|
||||
var touid = $(this).parents('li').attr('data-uid');
|
||||
var username = $(this).parents('li.row').attr('data-username');
|
||||
var touid = $(this).parents('li.row').attr('data-uid');
|
||||
|
||||
if(username === app.username || !app.username)
|
||||
return;
|
||||
|
||||
|
||||
require(['chat'], function(chat) {
|
||||
var chatModal = chat.createModalIfDoesntExist(username, touid);
|
||||
chatModal.show();
|
||||
chat.bringModalToTop(chatModal);
|
||||
chatModal.modal();
|
||||
chat.bringModalToTop(chatModal); // I don't think this is necessary
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user