diff --git a/res/js/main.coffee b/res/js/main.coffee index 40c80d1..4b156aa 100755 --- a/res/js/main.coffee +++ b/res/js/main.coffee @@ -3,30 +3,6 @@ # MIT License 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() updateTemplateLists()