diff options
author | Marvin Borner | 2018-07-01 12:46:30 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-01 12:46:30 +0200 |
commit | fec425c474baddf155c6679d4ea4a8e3f92e91dc (patch) | |
tree | 9584d5ec42b05202cc95ab79d0f284ad5f0bba86 /resources/assets/js/chat.js | |
parent | aa73af3be51f6e36ea9ea5a1f78ac18c0b2a352c (diff) |
Clearing input on enter
Diffstat (limited to 'resources/assets/js/chat.js')
-rw-r--r-- | resources/assets/js/chat.js | 1 |
1 files changed, 1 insertions, 0 deletions
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", |