Update chat
This commit is contained in:
parent
db37cb4c40
commit
10f3390f3a
4 changed files with 33 additions and 12 deletions
|
@ -558,5 +558,17 @@
|
|||
}
|
||||
register_setting();
|
||||
color_selected_room();
|
||||
|
||||
// Adjust textarea height to fit the content
|
||||
$(document).ready(function() {
|
||||
$('#chat-input').on('input', function() {
|
||||
if (this.scrollHeight > this.clientHeight) {
|
||||
this.style.height = 'auto';
|
||||
this.style.height = (this.scrollHeight) + 'px';
|
||||
} else {
|
||||
$(this).css('height', '80%');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue