mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
@@ -48,7 +48,7 @@
|
|||||||
"nodebb-plugin-spam-be-gone": "0.4.5",
|
"nodebb-plugin-spam-be-gone": "0.4.5",
|
||||||
"nodebb-rewards-essentials": "0.0.6",
|
"nodebb-rewards-essentials": "0.0.6",
|
||||||
"nodebb-theme-lavender": "3.0.2",
|
"nodebb-theme-lavender": "3.0.2",
|
||||||
"nodebb-theme-persona": "4.0.38",
|
"nodebb-theme-persona": "4.0.39",
|
||||||
"nodebb-theme-vanilla": "5.0.15",
|
"nodebb-theme-vanilla": "5.0.15",
|
||||||
"nodebb-widget-essentials": "2.0.5",
|
"nodebb-widget-essentials": "2.0.5",
|
||||||
"nodemailer": "0.7.1",
|
"nodemailer": "0.7.1",
|
||||||
|
|||||||
@@ -38,13 +38,8 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
|
|||||||
};
|
};
|
||||||
|
|
||||||
Chats.addEventListeners = function() {
|
Chats.addEventListeners = function() {
|
||||||
$('.chats-list').on('click', 'li', function(e) {
|
components.get('chat/recent').on('click', 'li', function(e) {
|
||||||
var env = utils.findBootstrapEnvironment();
|
Chats.switchChat(parseInt($(this).attr('data-uid'), 10), $(this).attr('data-username'));
|
||||||
if (env === 'xs' || env === 'sm') {
|
|
||||||
app.openChat($(this).attr('data-username'), $(this).attr('data-uid'));
|
|
||||||
} else {
|
|
||||||
Chats.switchChat(parseInt($(this).attr('data-uid'), 10), $(this).attr('data-username'));
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Chats.addSendHandlers(Chats.getRecipientUid(), $('.chat-input'), $('.expanded-chat button[data-action="send"]'));
|
Chats.addSendHandlers(Chats.getRecipientUid(), $('.chat-input'), $('.expanded-chat button[data-action="send"]'));
|
||||||
|
|||||||
Reference in New Issue
Block a user