Anonymous callback function

This commit is contained in:
redfast00 2018-08-21 17:02:11 +02:00
parent 351424b673
commit 788803caa1
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

@ -6,5 +6,5 @@ $ '.send'
contentType: "text/plain", contentType: "text/plain",
type: "POST" type: "POST"
data: $('.chatbox').val() data: $('.chatbox').val()
success: _ -> $('#chat-response').text('Success! :)') success: -> $('#chat-response').text('Success! :)')
error: _ -> $('#chat-response').text('Error !1!') error: -> $('#chat-response').text('Error !1!')