zeus.ugent.be/content/assets/scripts/message.coffee
2018-08-21 17:02:11 +02:00

10 lines
304 B
CoffeeScript

$ '.send'
.click ->
$context = $ this
$.ajax
url: "https://kelder.zeus.ugent.be/messages/",
contentType: "text/plain",
type: "POST"
data: $('.chatbox').val()
success: -> $('#chat-response').text('Success! :)')
error: -> $('#chat-response').text('Error !1!')