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