mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 10:56:09 +02:00
@@ -15,7 +15,7 @@ define('forum/chats/user-search', [
|
|||||||
chatsListEl.on('click', '[data-uid]', function () {
|
chatsListEl.on('click', '[data-uid]', function () {
|
||||||
if (options.onSelect) {
|
if (options.onSelect) {
|
||||||
options.onSelect(
|
options.onSelect(
|
||||||
users.find(u => parseInt(u.uid, 10) === parseInt($(this).attr('data-uid'), 10))
|
users.find(u => String(u.uid) === String($(this).attr('data-uid')))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
clearInputAndResults(chatsListEl);
|
clearInputAndResults(chatsListEl);
|
||||||
|
|||||||
Reference in New Issue
Block a user