Made chatinput reset after send.
This commit is contained in:
parent
85720cce0a
commit
3f1ba85456
1 changed files with 2 additions and 1 deletions
|
|
@ -221,7 +221,8 @@ DynMap.prototype = {
|
||||||
.keydown(function(event) {
|
.keydown(function(event) {
|
||||||
if (event.keyCode == '13') {
|
if (event.keyCode == '13') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
sendChat(this.value);
|
sendChat(chatinput.val());
|
||||||
|
chatinput.val('');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.appendTo(chat);
|
.appendTo(chat);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue