Removed obsolete code

This commit is contained in:
Marcel Kapfer (mmk2410) 2016-11-20 09:06:13 +01:00
parent a3c02b057d
commit ebe2b80e87

View file

@ -3,30 +3,6 @@
# MIT License # MIT License
main = -> main = ->
###
$("#send").click ->
url = "/res/php/sendmail.php"
data = new FormData
data.append "json", JSON.stringify
a: 1
b: "test"
request = new Request url,
method: 'POST'
body: data
fetch request
.then (response) ->
console.log response
###
###
url = "./res/php/sendmail.php?list=" + $("#address_list").val() +
"&template=" + $("#templates_list").val()
$.get url, (data) ->
if data is "0"
alert "Mail sent!"
else
alert "Sending mail failed!"
###
updateAddressLists() updateAddressLists()
updateTemplateLists() updateTemplateLists()