aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/assets/js/chat.js
diff options
context:
space:
mode:
authorMarvin Borner2018-07-01 12:46:30 +0200
committerMarvin Borner2018-07-01 12:46:30 +0200
commitfec425c474baddf155c6679d4ea4a8e3f92e91dc (patch)
tree9584d5ec42b05202cc95ab79d0f284ad5f0bba86 /resources/assets/js/chat.js
parentaa73af3be51f6e36ea9ea5a1f78ac18c0b2a352c (diff)
Clearing input on enter
Diffstat (limited to 'resources/assets/js/chat.js')
-rw-r--r--resources/assets/js/chat.js1
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",