From fec425c474baddf155c6679d4ea4a8e3f92e91dc Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 1 Jul 2018 12:46:30 +0200 Subject: Clearing input on enter --- resources/assets/js/chat.js | 1 + 1 file changed, 1 insertion(+) (limited to 'resources') diff --git a/resources/assets/js/chat.js b/resources/assets/js/chat.js index 5f634d2..794c78f 100644 --- a/resources/assets/js/chat.js +++ b/resources/assets/js/chat.js @@ -13,6 +13,7 @@ $('input.send').click(function (e) { function sendMessage() { var message = $('input.message').val(); + $('input.message').val(""); $.ajax({ type: "POST", url: "sendMessage", -- cgit v1.2.3