mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
closes #1445
This commit is contained in:
16
public/src/forum/chats.js
Normal file
16
public/src/forum/chats.js
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
/* globals define, app*/
|
||||
|
||||
define(function() {
|
||||
var Chats = {};
|
||||
|
||||
Chats.init = function() {
|
||||
|
||||
$('.chats-list').on('click', 'li', function(e) {
|
||||
app.openChat($(this).attr('data-username'), $(this).attr('data-uid'));
|
||||
});
|
||||
};
|
||||
|
||||
return Chats;
|
||||
});
|
||||
Reference in New Issue
Block a user