Merge pull request #267 from ZeusWPI/fix-cammie-errormessage
Fix cammie errormessage
This commit is contained in:
commit
e6fa8c4526
1 changed files with 2 additions and 3 deletions
|
@ -2,10 +2,9 @@ $ '.send'
|
||||||
.click ->
|
.click ->
|
||||||
$context = $ this
|
$context = $ this
|
||||||
$.ajax
|
$.ajax
|
||||||
# url: "http://localhost:8080/"
|
|
||||||
url: "https://kelder.zeus.ugent.be/messages/",
|
url: "https://kelder.zeus.ugent.be/messages/",
|
||||||
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!')
|
||||||
|
|
Loading…
Reference in a new issue