...
|
...
|
@@ -125,10 +125,16 @@ var chat = { |
|
|
})
|
|
|
.on('keydown.chat.sendText', '.text-in', function(event) {
|
|
|
if (event.which === 13) {
|
|
|
let val = $.trim(event.target.value);
|
|
|
|
|
|
if (!val) {
|
|
|
return ;
|
|
|
}
|
|
|
|
|
|
let content = {
|
|
|
avatar: userAvatar,
|
|
|
data: {
|
|
|
content: $.trim(event.target.value)
|
|
|
content: val
|
|
|
}
|
|
|
};
|
|
|
|
...
|
...
|
|