From ebe2b80e87231523e15a6d398a50f93907014b94 Mon Sep 17 00:00:00 2001 From: "Marcel Kapfer (mmk2410)" Date: Sun, 20 Nov 2016 09:06:13 +0100 Subject: [PATCH] Removed obsolete code --- res/js/main.coffee | 24 ------------------------ 1 file changed, 24 deletions(-) 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()