From 83f334445b266074ab6d0893025753652df9a34b Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Sat, 19 Feb 2011 21:16:14 +0100 Subject: [PATCH] Made chatinput reset after send. --- web/map.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/map.js b/web/map.js index 377ce06b..8d08cfa9 100644 --- a/web/map.js +++ b/web/map.js @@ -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);