mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
17 lines
262 B
JavaScript
17 lines
262 B
JavaScript
|
|
'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;
|
||
|
|
});
|