Merge pull request #267 from ZeusWPI/fix-cammie-errormessage

Fix cammie errormessage
This commit is contained in:
redfast00 2018-08-21 17:06:44 +02:00 committed by GitHub
commit e6fa8c4526
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,10 +2,9 @@ $ '.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!')
success: -> $('#chat-response').text('Success! :)')
error: -> $('#chat-response').text('Error !1!')