Made chatinput reset after send.

This commit is contained in:
FrozenCow 2011-02-19 21:16:14 +01:00
parent 85720cce0a
commit 3f1ba85456

View file

@ -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);