Reset textarea to default size after submitting message (#99)
This commit is contained in:
parent
015cbcc758
commit
c9f1d69b47
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,6 @@
|
|||
if ($("#chat-input").val().trim()) {
|
||||
$('#chat-input-container').height('auto');
|
||||
var body = $('#chat-input').val().trim();
|
||||
// body = body.split('\n').join('\n\n');
|
||||
|
||||
var message = {
|
||||
body: body,
|
||||
|
@ -228,6 +227,7 @@
|
|||
};
|
||||
|
||||
$('#chat-input').val('');
|
||||
$('#chat-input').css('height', '70%');
|
||||
|
||||
add_message_from_template(body, message.tmp_id);
|
||||
|
||||
|
|
Loading…
Reference in a new issue