Removed obsolete code
This commit is contained in:
parent
a3c02b057d
commit
ebe2b80e87
1 changed files with 0 additions and 24 deletions
|
@ -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()
|
||||||
|
|
Reference in a new issue