zeus.ugent.be/content/assets/scripts/message.coffee
2018-04-27 04:05:25 +02:00

11 lines
336 B
CoffeeScript

$ '.send'
.click ->
$context = $ this
$.ajax
# url: "http://localhost:8080/"
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!')