mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
@@ -135,7 +135,7 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
|
|||||||
openMovePostModal($(this));
|
openMovePostModal($(this));
|
||||||
});
|
});
|
||||||
|
|
||||||
postContainer.on('click', '[component="user/chat"]', function(e) {
|
postContainer.on('click', '[component="post/chat"]', function(e) {
|
||||||
openChat($(this));
|
openChat($(this));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -357,7 +357,7 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
|
|||||||
}
|
}
|
||||||
|
|
||||||
function openChat(button) {
|
function openChat(button) {
|
||||||
var post = button.parents('data-pid');
|
var post = button.parents('[data-pid]');
|
||||||
|
|
||||||
app.openChat(post.attr('data-username'), post.attr('data-uid'));
|
app.openChat(post.attr('data-username'), post.attr('data-uid'));
|
||||||
button.parents('.btn-group').find('.dropdown-toggle').click();
|
button.parents('.btn-group').find('.dropdown-toggle').click();
|
||||||
|
|||||||
Reference in New Issue
Block a user