|
|
@ -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 username = $(this).parents('li').attr('data-username');
|
|
|
|
var touid = $(this).parents('li').attr('data-uid');
|
|
|
|
var touid = $(this).parents('li').attr('data-uid');
|
|
|
|
|
|
|
|
|
|
|
|
if(username === app.username || !app.username)
|
|
|
|
if(username === app.username || !app.username)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
require(['chat'], function(chat) {
|
|
|
|
require(['chat'], function(chat) {
|
|
|
|
var chatModal = chat.createModalIfDoesntExist(username, touid);
|
|
|
|
var chatModal = chat.createModalIfDoesntExist(username, touid);
|
|
|
|
chatModal.show();
|
|
|
|
chatModal.show();
|
|
|
|